OFFSET
1,1
COMMENTS
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Paul Tek)
EXAMPLE
(8,2,6,0,4,...) is an arithmetic progression mod 10, hence the number 82604 appears in this sequence.
MATHEMATICA
Select[Range[100, 10^3], Length[Union[Mod[Differences[IntegerDigits[#]], 10]]] <= 1 &] (* T. D. Noe, Nov 12 2013 *)
PROG
(PARI) a(n) = my(len=3+(n-1)\90, \
fs=10+((n-1)%90), \
f=fs\10, \
s=fs%10); \
return(sum(i=1, len, 10^(len-i)*((f+(i-1)*(s-f))%10)))
(Python)
from itertools import count, islice
def agen(): yield from (int("".join(str((s0+i*r)%10) for i in range(d))) for d in count(3) for s0 in range(1, 10) for r in range(-s0, 10-s0))
print(list(islice(agen(), 52))) # Michael S. Branicky, Aug 05 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paul Tek, Nov 12 2013
STATUS
approved