OFFSET
1,10
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 = 1000}, Union@ Flatten@ Table[2^a * 3^b * 5^c * 7^d, {a, 0, n}, {b, 0, Log[3, n/2^a]}, {c, 0, Log[5, n/(2^a * 3^b)]}, {d, 0, Log[7, n/(2^a * 3^b * 5^c)] } ] ]; MapApply[GCD, Partition[s, 2, 1] ]
PROG
(Python)
from math import gcd
from sympy import integer_log
from oeis_sequences.OEISsequences import bisection
def A393576(n):
def f(x):
c = n+x
for i in range(integer_log(x, 7)[0]+1):
for j in range(integer_log(m:=x//7**i, 5)[0]+1):
for k in range(integer_log(r:=m//5**j, 3)[0]+1):
c -= (r//3**k).bit_length()
return c
return gcd(m:=bisection(f, n, n), bisection(lambda x:f(x)+1, m, m)) # Chai Wah Wu, Mar 09 2026
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael De Vlieger, Feb 23 2026
STATUS
approved
