A138572 Numbers k that divide the sum of the digits of k^k in base 2.
1, 6, 122, 2126, 7910, 8254, 16201, 32312, 32426, 32998, 65436, 261649, 261803, 1044017, 1050183, 4194999
Offset: 1
Examples
6^6 = 1011011001000000_2; 1+0+1+1+0+1+1+0+0+1+0+0+0+0+0+0 = 6; 6 mod 6 = 0.
Links
- Nick Hobson, C program
Crossrefs
Cf. A108827.
Programs
-
C
See Links section.
-
Mathematica
Select[Range[1100000],Divisible[Total[IntegerDigits[#^#,2]],#]&] (* Harvey P. Dale, Dec 18 2014 *)
-
PARI
isok(k) = !(hammingweight(k^k) % k); \\ Michel Marcus, Aug 20 2021
Extensions
a(12)-a(15) from Lars Blomberg, Jul 01 2011
a(16) from Nick Hobson, Feb 05 2024
Comments