OFFSET
0,3
LINKS
Robert Israel, Table of n, a(n) for n = 0..10003 (rows 0 to 3646, flattened)
MAPLE
seq(op(convert(n, base, 8)), n=0..100); # Robert Israel, Jul 22 2019
MATHEMATICA
Flatten[Table[Reverse[IntegerDigits[n, 8]], {n, 80}]] (* Harvey P. Dale, Aug 08 2011 *)
PROG
(PARI) A031045(n, k=-1)=/*k<0&&error("Flattened sequence not yet implemented."); */n\8^k%8 \\ Assuming that columns are numbered starting with k=0 as in A030308, A030341, ... Note: The operation could be done using bitwise arithmetic, bitand(n>>(3*k), 7), but this is not significantly faster in PARI. - M. F. Hasler, Jul 21 2013
CROSSREFS
KEYWORD
nonn,base,tabf,less
AUTHOR
EXTENSIONS
Initial 0 and better name by Philippe Deléham, Oct 20 2011
STATUS
approved