OFFSET
1,2
LINKS
Ray Chandler, Table of n, a(n) for n = 1..10000
Hao Fu and G.-N. Han, Computer assisted proof for Apwenian sequences related to Hankel determinants, arXiv preprint arXiv:1601.04370 [math.NT], 2016. See sequence "K" in Section 2.2.
MATHEMATICA
isok[n_]:=Module[{ord=IntegerExponent[n+1, 5]}, MemberQ[{2, 3}, Mod[(n+1)/5^ord, 5]]]; Select[Range[0, 131], isok] (*Ray Chandler, Dec 17 2016*)
PROG
(Python)
from sympy import integer_log
def A278999(n):
def f(x): return n-1+sum(((m:=(x+1)//5**i)-1)//5+(m-4)//5+2 for i in range(integer_log(x+1, 5)[0]+1))
m, k = n, f(n)
while m != k: m, k = k, f(k)
return m # Chai Wah Wu, Feb 20 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Dec 07 2016
EXTENSIONS
More terms from Ray Chandler, Dec 17 2016
STATUS
approved