A135652 Divisors of 28 (the 2nd perfect number), written in base 2.
1, 10, 100, 111, 1110, 11100
Offset: 1
Examples
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)
Crossrefs
Programs
-
Mathematica
FromDigits[IntegerDigits[#,2]]&/@Divisors[28] (* Harvey P. Dale, Nov 14 2020 *)
-
PARI
apply(n->fromdigits(binary(n)), divisors(28)) \\ Charles R Greathouse IV, Jun 21 2017
Comments