OFFSET
1,2
COMMENTS
All terms are elements of A003592. - Chai Wah Wu, Mar 09 2026
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
Michael De Vlieger, Log log scatterplot of a(n), n = 1..2^20.
MATHEMATICA
s = With[{n = 10^5}, Union@ Flatten@ Table[2^i*5^j, {i, 0, Log2[n]}, {j, 0, Log[5, n/2^i] } ] ]; MapApply[GCD, Partition[s, 2, 1] ]
PROG
(Python)
from math import gcd
from sympy import integer_log
from oeis_sequences.OEISsequences import bisection
def A393164(n):
def f(x): return n+x-sum((x//5**i).bit_length() for i in range(integer_log(x, 5)[0]+1))
return gcd(m:=bisection(f, n, n), bisection(lambda x:f(x)+1, m, m)) # Chai Wah Wu, Mar 09 2026
(PARI) a(n)= my(m=5, p=0, r=List([1]), v); while(#r<=n, while((v=r[p++]*2)<m, listput(~r, v)); listput(~r, m); listput(~r, v); m*=5); gcd(r[n], r[n+1]); \\ Ruud H.G. van Tol, Mar 09 2026
CROSSREFS
KEYWORD
AUTHOR
Michael De Vlieger, Mar 04 2026
STATUS
approved
