OFFSET
1,3
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..1226 (derived from A030154 b-file)
MATHEMATICA
altQ[n_] := n < 10 || Union[Total /@ Partition[ Mod[ IntegerDigits@n, 2], 2, 1]] == {1}; Select[ Range[0, 10^5], altQ[#] && altQ[#^2] &] (* Giovanni Resta, Aug 16 2018 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved