OFFSET
1,3
COMMENTS
EXAMPLE
The representation of 546 in base 2^4 is "222", so 546 belongs to the sequence.
PROG
(PARI) is(n) = { for (w=1, max(1, #binary(n)), my (d=if (n, digits(n, 2^w), [0])); if (#Set(d)==1 && hammingweight(d[1])<=1, return (1))); return (0) }
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Dec 06 2019
STATUS
approved