OFFSET
1,2
FORMULA
EXAMPLE
The structure of divisors of 28 (see A018254)
----------------------------------------------------------------------
n ... Divisor . Formula ....... Divisor written in base 2 ............
----------------------------------------------------------------------
1)......... 1 = 2^0 ........... 1
2)......... 2 = 2^1 ........... 10
3)......... 4 = 2^2 ........... 100 .... (The 2nd superperfect number)
4)......... 7 = 2^3 - 2^0 ..... 111 .... (The 2nd Mersenne prime)
5)........ 14 = 2^4 - 2^1 ..... 1110
6)........ 28 = 2^5 - 2^2 ..... 11100... (The 2nd perfect number)
MATHEMATICA
FromDigits[IntegerDigits[#, 2]]&/@Divisors[28] (* Harvey P. Dale, Nov 14 2020 *)
PROG
(PARI) apply(n->fromdigits(binary(n)), divisors(28)) \\ Charles R Greathouse IV, Jun 21 2017
CROSSREFS
KEYWORD
base,nonn,fini,full,easy,less
AUTHOR
Omar E. Pol, Feb 23 2008, Mar 03 2008
STATUS
approved