OFFSET
1,2
COMMENTS
In base 2 this gives the "Evil Numbers" (cf. A001969) and slope 2. One may conjecture that in base b the asymptotic slope will be b and might suspect asymptotic density 1/b for each result (mod b). For nonprime b larger variations occur and "very big" numbers must be considered to believe in the conjecture (1 million or more...). (Related to A006287, here mod b is considered)
EXAMPLE
59 is a member because 59 = 2013_3 and 2^2+0^2+1^2+1^2 = 6 = 0 (mod 3).
MATHEMATICA
Ev = Function[{b, x}, vx = IntegerDigits[x, b]; Mod[vx.vx, b]]; Seq = Function[{b, n}, Flatten[Position[Table[Ev[b, k], {k, 1, n}], 0]]]; Seq[3, 1000]
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Carlos Alves, Jan 20 2003
EXTENSIONS
Revised by Sean A. Irvine, Aug 17 2025
STATUS
approved
