OFFSET
1,2
COMMENTS
LINKS
MATHEMATICA
Select[Range@ 320, AnyTrue[{#, #/2}, IntegerQ@ Sqrt@ # &] &@ Floor@ Total@ Flatten@ MapIndexed[#1 2^(#2 - 1) &, Flatten[Table[2^(PrimePi@ #1 - 1), {#2}] & @@@ FactorInteger@ #]] &] (* Michael De Vlieger, Mar 27 2019 *)
PROG
(PARI)
A156552(n) = {my(f = factor(n), p2 = 1, res = 0); for(i = 1, #f~, p = 1 << (primepi(f[i, 1]) - 1); res += (p * p2 * (2^(f[i, 2]) - 1)); p2 <<= f[i, 2]); res}; \\ From A156552 by David A. Corneth
for(n=1, oo, if((1==n)||A324823(n), print1(n, ", ")));
(PARI) is(n) = { n = A156552(n); n == 0 || n >>= (valuation(n, 2)%2); issquare(n); }; \\ David A. Corneth, Mar 16 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Mar 16 2019
STATUS
approved