OFFSET
1,2
COMMENTS
a(n+1) = smallest number, not occurring earlier, such that a carry occurs when adding it to a(n) in decimal arithmetic.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Carry
Wikipedia, Carry (arithmetic)
PROG
(Haskell)
import Data.List (delete)
a252001 n = a252001_list !! (n-1)
a252001_list = 1 : f [1] (drop 2 a031298_tabf) where
f xs zss = g zss where
g (ds:dss) = if any (> 9) $ zipWith (+) xs ds
then (foldr (\d v -> 10 * v + d) 0 ds) : f ds (delete ds zss)
else g dss
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Dec 12 2014
STATUS
approved