# Tag Archives: series

The nth Taxicab number Taxicab(n), also called the n-th Hardy-Ramanujan number, is defined as the smallest number that can be expressed as a sum of… Read More »

## Check if a number is magic (Recursive sum of digits is 1)September 20, 2017

A number is said to be a magic number, if the sum of its digits are calculated till a single digit recursively by adding the… Read More »

## Program for sum of geometric seriesSeptember 19, 2017

A Geometric series is a series with a constant ratio between successive terms. The first term of the series is denoted by a and common… Read More »

## Sylvester’s sequenceSeptember 17, 2017

In number system, Sylvester’s sequence is an integer sequence in which each member of the sequence is the product of the previous members, plus one.… Read More »

## Composite Number

A composite number is a positive integer that is not prime. In other words, it has a positive divisor other than one or itself. First… Read More »

## Program to find sum of first n natural numbers

Given a number n, find sum of first natural numbers. Examples: Input : n = 3 Output : 6 Explanation : Note that 1 +… Read More »

We are provided with a number N. Our task is to generate all the Hailstone Numbers from N and find the number of steps taken… Read More »

## Neon NumberSeptember 5, 2017

A neon number is a number where the sum of digits of square of the number is equal to the number. The task is to… Read More »

## Check if a given number is PronicAugust 14, 2017

The numbers that can be arranged to form a rectangle are called Rectangular Numbers (also known as Pronic numbers). The first few Pronic numbers are:… Read More »

## Check if a number is jumbled or notJuly 30, 2017

Write a program to check if a given integer is jumbled or not. A number is said to be Jumbled if for every digit, its… Read More »

## Pell NumberJuly 28, 2017

Pell numbers are numbers that are similar to the Fibonacci numbers and are generated by below formula Pn = 2*Pn-1 + Pn-2 with seeds P0… Read More »

## Demlo number (Square of 11…1)July 25, 2017

Given a number of the form 11..1 such that number of digits in it is smaller than 10, find square of the number. Examples: Input… Read More »

## Lychrel Number ImplementationJuly 3, 2017

Lychrel Number is a natural number that cannot form a palindrome through the iterative process of repeatedly reversing its digits and adding the resulting numbers.… Read More »

## Largest natural number that can be printed with M charactersJune 29, 2017

Given a number M which represents maximum number of characters (ignoring spaces) to be used to print first N natural numbers. Find the largest value… Read More »

## Rectangular (or Pronic) NumbersJune 26, 2017

The numbers that can be arranged to form a rectangle are called Rectangular Numbers ( also known as Pronic numbers). The first few rectangular numbers… Read More »