OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
6241 = 79^2: 1100001100001 = 1001111*1001111, therefore 6241 is a term.
MATHEMATICA
Do[b = Count[ IntegerDigits[n^2, 2], 1]; If[ Count[ IntegerDigits[n, 2], 1] == b, c = 0; d = IntegerDigits[ Divisors[n^2], 2]; l = DivisorSigma[0, n^2]; k = 1; While[ k < Ceiling[l/2], If[Count[d[[k]], 1] == b && Count[d[[l - k + 1]], 1] == b, c++ ]; k++ ]; If[c == 0, Print[n^2]]], {n, 1, 1000}]
dnd1Q[n_]:=Count[Divisors[n], _?(DigitCount[n, 2, 1]==DigitCount[ #, 2, 1] == DigitCount[n/#, 2, 1]&)]==1; Select[Range[800000], dnd1Q] (* Harvey P. Dale, Aug 03 2021 *)
PROG
(PARI) list(lim) = my(h); for(k = 1, lim, h = hammingweight(k); if(hammingweight(k^2) == h && sumdiv(k, d, d < k && hammingweight(d) == h && hammingweight(k^2/d) == h) == 0, print1(k^2, ", "))); \\ Amiram Eldar, Jul 30 2025
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Jan 21 2003
EXTENSIONS
More terms from Robert G. Wilson v, Jan 24 2003
STATUS
approved
