Category Archives: Mathematical

Program to find Cullen Number

A Cullen Number is a number of the form is 2n * n + 1 where n is an integer. The first few Cullen numbers are 1, 3, 9, 25, 65, 161, 385, 897, 2049, 4609 . . . . . . Examples: Input : n = 4 Output :65 Input : n = 0… Read More »

Minimum step to reach one

Given a positive number N, we need to reach to 1 in minimum number of steps where a step is defined as converting N to (N-1) or converting N to its one of the bigger divisor. Formally, if we are at N, then in 1 step we can reach to (N – 1) or if… Read More »