SelfNumber
1. Question
- If you start with 33, the next number is 33 + 3 +3 = 39, the next is 39 + 3 + 9 = 51 and so you generate the sequence
33, 39, 51, 57....
- d(n) n is called a generator of d(n)
- Some numbers have more than one generator
- A number with no generators is a self-number
- Write a program to output all positive self-numbers less than 10000 in increasing order, one per line
2. Solution
'Algorithm&DataStructures > StepByStep' 카테고리의 다른 글
[Algorithm] 백준알고리즘_OneNumber(한수) (0) | 2016.09.13 |
---|---|
[Algorithm] 백준알고리즘_SmallerThanX (0) | 2016.08.31 |
[Algorithm] 백준알고리즘_SecondLargest (0) | 2016.08.25 |
[Algorithm] 백준알고리즘_TestScore (0) | 2016.08.25 |
[Algorithm] 백준알고리즘_Sum (0) | 2016.08.24 |