login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A244682
The spiral of Champernowne read by the North-Northwest ray.
0
1, 1, 6, 7, 1, 8, 2, 2, 5, 4, 5, 8, 8, 9, 0, 1, 7, 2, 5, 1, 2, 3, 2, 2, 5, 7, 9, 3, 6, 3, 8, 4, 5, 2, 8, 5, 2, 4, 0, 6, 7, 9, 3, 7, 0, 6, 7, 9, 1, 6, 0, 0, 6, 2, 4, 1, 2, 0, 9, 4, 3, 4, 1, 9, 1, 5, 6, 7, 0, 4, 7, 8, 9, 2, 3, 0, 0, 7, 6, 7, 2, 3, 2, 2, 8, 5, 5, 2, 9, 5, 8, 8, 8, 8, 7, 1, 1, 1, 9, 6, 4, 4, 9, 1, 1
OFFSET
1,3
FORMULA
See A244677 formula section.
EXAMPLE
See A244677 for the spiral of David Gawen Champernowne.
MATHEMATICA
almostNatural[n_, b_] := Block[{m = 0, d = n, i = 1, l, p}, While[m <= d, l = m; m = (b - 1) i*b^(i - 1) + l; i++]; i--; p = Mod[d - l, i]; q = Floor[(d - l)/i] + b^(i - 1); If[p != 0, IntegerDigits[q, b][[p]], Mod[q - 1, b]]]; f[n_] := 16n^2 - 33n + 18 (* see A244677 formula section *); Array[ almostNatural[ f@#, 10] &, 105]
KEYWORD
nonn,easy
AUTHOR
Robert G. Wilson v, Jul 04 2014
STATUS
approved