OFFSET
0,3
COMMENTS
The sequence is infinite.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..5000
Index entries for linear recurrences with constant coefficients, signature (0,1,0,0,0,0,0,10,0,-10).
FORMULA
a(n) = a(n-2) + 10*a(n-8) - 10*a(n-10) for n > 29. - Nicolas Bělohoubek, Jul 01 2024
MATHEMATICA
a = {0}; For[n = 1, n < 1000000, n++, If[Length[Intersection[IntegerDigits[n], IntegerDigits[a[[ -1]]]]] == 0, AppendTo[a, n]]]; a (* Stefan Steinerberger, May 30 2007 *)
PROG
(Haskell)
a030283 n = a030283_list !! n
a030283_list = 0 : f 1 9 0 where
f u v w = w' : f u' v' w' where
w' = until (> w) ((+ v) . (* 10)) u
(u', v') = h u v
h 1 0 = (2, 2); h 9 0 = (1, 1); h 9 1 = (2, 0); h 9 9 = (1, 0)
h u 2 = (u+1, 0); h u v = (u+1, 1-v)
-- Reinhard Zumkeller, May 03 2012
CROSSREFS
KEYWORD
nonn,base,easy,nice
AUTHOR
EXTENSIONS
Edited by N. J. A. Sloane at the suggestion of Rick L. Shepherd, Sep 27 2007
Definition clarified by Harvey P. Dale, Oct 19 2012
STATUS
approved