OFFSET
0,2
COMMENTS
The first repeated number is 481653 = a(2085) = a(3165).
From Michael S. Branicky, Jan 01 2026: (Start)
Maximum term is 9876523140 = a(230773).
Periodic with period 167227 beginning at (a(455403), a(455404)) = (92407138, 2904378651) = (a(622630), a(622631)). (End)
LINKS
Michael S. Branicky, Table of n, a(n) for n = 0..10000
FORMULA
For n >= 1: a(n+1) = A137564(a(n-1)*a(n)). - Michael S. Branicky, Jan 01 2026
EXAMPLE
For n = 8 we have that 256 * 8192 = 2097152, then since 2 is repeated a(8) = 209715.
For n = 9 we have that 8192 * 209715 = 1717985280, then without repeated digits a(9) = 1798520.
MATHEMATICA
a[n_] := a[n] = FromDigits[DeleteDuplicates[IntegerDigits[a[n-1]*a[n-2]]]]; a[0] = 1; a[1] = 2; Array[a, 35, 0] (* 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 A392141(): # generator of terms
anm1, an = 1, 2
yield anm1
while True:
yield an
anm1, an = an, f(anm1*an)
print(list(islice(A392141(), 35))) # Michael S. Branicky, Jan 01 2026
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Rodolfo Kurchan, Jan 01 2026
STATUS
approved
