OFFSET
1,1
EXAMPLE
99 is not in this sequence because it is in the sequence with the recurrence a(n) = 3*a(n-1) + a(n-2) starting with 3 and 0: 3, 0, 3, 9, 30, 99, ....
One may check that 100 is the smallest number not in any recurrent sequence of the form a(n+2) = 3a(n+1) + a(n) with a(0) and a(1) in {0, ..., 9}. Therefore a(1) = 100.
PROG
(PARI) list(lim)=if(lim<100, return([0..lim\1])); my(v=List([0..99])); for(t=1, 9, my(x=10*t, y=33*t); while(y<=lim, listput(v, y); [x, y]=[y, x+3*y])); for(m=1, 9, for(n=1, 9, my(x=m+3*n, y=3*x+n); while(y<=lim, listput(v, y); [x, y]=[y, x+3*y]))); Set(v) \\ Charles R Greathouse IV, Aug 14 2017 [This computes the complement.]
CROSSREFS
KEYWORD
nonn
AUTHOR
Bobby Jacobs, Aug 14 2017
EXTENSIONS
Entry revised by M. F. Hasler and N. J. A. Sloane, Nov 24 2018
Definition corrected by N. J. A. Sloane, Jun 16 2021 (changing "a()" to "b()"). This is a list, so it has offset 1. - N. J. A. Sloane, Jun 16 2021
STATUS
approved