OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
PROG
(Python)
from sympy.ntheory.factor_ import digits
def a(k, base=3):
m = k + base*(k%base)
return len([m+y for y in range(1, base) if digits(m+y, base)[1] == y])
print([a(n) for n in range(1, 96)]) # Michael S. Branicky, Dec 23 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Dec 23 2023
STATUS
approved