login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A167231 Append three digits, each increasing by one modulo 10 from the last digit of the nonnegative integers. 0 -> 123, 1 -> 1234 2 -> 2345, ... , 9 -> 9012, 10 -> 10123, etc. 0
123, 1234, 2345, 3456, 4567, 5678, 6789, 7890, 8901, 9012, 10123, 11234, 12345, 13456, 14567, 15678, 16789, 17890, 18901, 19012, 20123, 21234, 22345, 23456, 24567, 25678, 26789, 27890, 28901, 29012, 30123, 31234, 32345, 33456, 34567, 35678, 36789, 37890, 38901 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
a(n) = 1000n + O(1).
G.f.: (988*x^10 +111*x^9 +1011*x^8 +1101*x^7 +1111*x^6 +1111*x^5 +1111*x^4 +1111*x^3 +1111*x^2 +1111*x +123) / (x^11 -x^10 -x +1). - Alois P. Heinz, Jul 05 2022
MAPLE
a:= n-> (d-> parse(cat(n, irem(d+i, 10)$i=1..3)))(irem(n, 10)):
seq(a(n), n=0..40); # Alois P. Heinz, Jul 05 2022
PROG
(Python)
def a(n): return int(str(n) + "".join(str((n%10+1+i)%10) for i in range(3)))
print([a(n) for n in range(39)]) # Michael S. Branicky, Jul 05 2022
CROSSREFS
Sequence in context: A077379 A135475 A233119 * A174173 A116935 A265983
KEYWORD
nonn,base,easy
AUTHOR
Felix Tubiana, Oct 30 2009
EXTENSIONS
More terms from Alois P. Heinz, Jul 05 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 23 04:59 EDT 2024. Contains 373629 sequences. (Running on oeis4.)