login
This site is supported by donations to The OEIS Foundation.

 

Logo

Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing.
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A299982 Lexicographic first sequence of nonnegative integers such that a(n) + a(n+1) has a digit 2, and no term occurs twice. 9
0, 2, 10, 11, 1, 19, 3, 9, 12, 8, 4, 16, 5, 7, 13, 14, 6, 15, 17, 25, 27, 35, 37, 45, 47, 55, 57, 63, 29, 23, 39, 33, 49, 43, 59, 53, 67, 54, 18, 24, 28, 34, 38, 44, 48, 64, 56, 26, 36, 46, 66, 58, 62, 20, 22, 30, 32, 40, 42, 50, 52, 60, 61, 21, 31, 41, 51, 69, 73, 79, 83, 89, 93, 99, 101, 71, 81, 91, 109, 92, 70 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

A permutation of the nonnegative integers.

LINKS

Table of n, a(n) for n=0..80.

PROG

(PARI) a(n, f=1, d=2, a=0, u=[a])={for(n=1, n, f&&if(f==1, print1(a", "), write(f, n-1, " "a)); for(k=u[1]+1, oo, setsearch(u, k)&&next; setsearch(Set(digits(a+k)), d)&&(a=k)&&break); u=setunion(u, [a]); u[2]==u[1]+1&&u=u[^1]); a}

CROSSREFS

Cf. A299972 (analog with positive terms), A299957 (analog with digit 1), A299970, A299983, ..., A299988, A299969 (digit 0, 3, ..., 9).

Sequence in context: A033466 A193181 A222638 * A089601 A171893 A278816

Adjacent sequences:  A299979 A299980 A299981 * A299983 A299984 A299985

KEYWORD

nonn,base

AUTHOR

M. F. Hasler and Eric Angelini, Feb 22 2018

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 15 14:37 EST 2019. Contains 329999 sequences. (Running on oeis4.)