login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A379447
a(n) is the number of ones in the binary expansion of (n^n)^n.
2
1, 1, 8, 1, 19, 27, 68, 1, 128, 105, 209, 120, 320, 266, 442, 1, 584, 524, 774, 476, 1006, 833, 1188, 477, 1486, 1248, 1746, 1066, 2068, 1733, 2365, 1, 2735, 2328, 3134, 1982, 3598, 3085, 4062, 1823, 4415, 3937, 5038, 3309, 5571, 4808, 6137, 1790, 6794, 5768, 7381
OFFSET
1,3
FORMULA
a(2^k) = 1.
EXAMPLE
a(3) = 8: (3^3)^3 = 27^3 = 19683 = 100110011100011_2 which has 8 ones.
MATHEMATICA
Array[DigitCount[#^(#^2), 2, 1] &, 50] (* Michael De Vlieger, Dec 26 2024 *)
PROG
(PARI) a379447(n) = hammingweight((n^n)^n)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Hugo Pfoertner, Dec 26 2024
STATUS
approved