OFFSET
1,4
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A007908(n) mod n. - Michel Marcus, Nov 21 2022
EXAMPLE
a(4) = 1234 mod 4 = 2.
PROG
(Python)
from itertools import count, islice
def agen():
s = "0"
for n in count(1): s += str(n); yield int(s)%n
print(list(islice(agen(), 83))) # Michael S. Branicky, Nov 21 2022
CROSSREFS
KEYWORD
base,nonn,easy
AUTHOR
Amarnath Murthy, Jun 10 2004
EXTENSIONS
More terms from John W. Layman, Jul 29 2005
STATUS
approved