A367802 Exponentially odious squares.
1, 4, 9, 16, 25, 36, 49, 81, 100, 121, 144, 169, 196, 225, 256, 289, 324, 361, 400, 441, 484, 529, 625, 676, 784, 841, 900, 961, 1089, 1156, 1225, 1296, 1369, 1444, 1521, 1681, 1764, 1849, 1936, 2025, 2116, 2209, 2304, 2401, 2500, 2601, 2704, 2809, 3025, 3249
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
odiousQ[n_] := OddQ[DigitCount[n, 2, 1]]; Select[Range[150]^2, AllTrue[FactorInteger[#][[;;, 2]], odiousQ] &]
-
PARI
isexpodious(n) = {my(f = factor(n)); for (i = 1, #f~, if(!(hammingweight(f[i, 2])%2), return (0))); 1;} is(n) = issquare(n) && isexpodious(n);
Comments