A367803 Exponentially evil squares.
1, 64, 729, 1024, 4096, 15625, 46656, 59049, 117649, 262144, 531441, 746496, 1000000, 1048576, 1771561, 2985984, 3779136, 4826809, 7529536, 9765625, 11390625, 16000000, 16777216, 24137569, 34012224, 47045881, 60466176, 64000000, 85766121, 113379904, 120472576, 148035889
Offset: 1
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
- Vladimir Shevelev, S-exponential numbers, Acta Arithmetica, Vol. 175 (2016), pp. 385-395.
Crossrefs
Programs
-
Mathematica
evilQ[n_] := EvenQ[DigitCount[n, 2, 1]]; Select[Range[10^4]^2, #== 1 || AllTrue[FactorInteger[#][[;;, 2]], evilQ] &]
-
PARI
isexpevil(n) = {my(f = factor(n)); for (i = 1, #f~, if(hammingweight(f[i, 2])%2, return (0))); 1;} is(n) = issquare(n) && isexpevil(n);
Comments