OFFSET
1,2
COMMENTS
Periodic with period 10 beginning at a(21) = 104.
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,0,1).
FORMULA
a(n) = A137564(2*a(n-1)).
a(n) = a(n-10) for n >= 31.
EXAMPLE
For n = 17 we have that 32768 * 2 = 65536, so a(17) = 653.
For n = 18 we have that 653 * 2 = 1306, so a(18) = 1306.
For n = 19 we have that 1306 * 2 = 2612, so a(19) = 261.
MATHEMATICA
a[n_] := a[n] = FromDigits[DeleteDuplicates[IntegerDigits[2*a[n-1]]]]; a[1] = 1; Array[a, 60] (* Amiram Eldar, Jan 01 2026 *)
PROG
(Python)
from itertools import islice
def f(n): # A137564
seen, out, s = set(), "", str(n)
for d in s:
if d not in seen: out += d; seen.add(d)
return int(out)
def A392142(): # generator of terms
an = 1
while True:
yield an
an = f(2*an)
print(list(islice(A392142(), 60))) # Michael S. Branicky, Jan 01 2026
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Rodolfo Kurchan, Jan 01 2026
STATUS
approved
