OFFSET
0,3
LINKS
Reinhard Zumkeller, Rows n = 0..1000 of triangle, flattened
PROG
(PARI) A031087(n, k=-1)=/*k<0&&error("Flattened sequence not yet implemented.")*/n\9^k%9 \\ Assuming that columns are numbered starting with k=0 as in A030308, A030567 and others. - M. F. Hasler, Jul 21 2013
(Haskell)
a031087 n k = a031087_row n !! (k-1)
a031087_row n | n < 9 = [n]
| otherwise = m : a031087_row n' where (n', m) = divMod n 9
a031087_tabf = map a031087_row [0..]
-- Reinhard Zumkeller, Jul 07 2015
CROSSREFS
KEYWORD
nonn,base,tabf,less
AUTHOR
EXTENSIONS
Initial 0 and better name by Philippe Deléham, Oct 20 2011
STATUS
approved