A244811 The hexagonal spiral of Champernowne, read along the 330-degree ray.
1, 4, 1, 1, 9, 4, 9, 7, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 5, 9, 4, 9, 9, 0, 0, 1, 7, 3, 0, 6, 9, 9, 4, 3, 5, 7, 2, 2, 5, 8, 4, 4, 9, 1, 0, 8, 7, 6, 0, 5, 9, 4, 4, 4, 5, 4, 2, 5, 5, 7, 4, 9, 9, 2, 0, 5, 7, 9, 0, 4, 9, 9, 4, 5, 5, 1, 2, 8, 5, 6, 4, 4, 9, 3, 0, 2, 7, 2, 0, 3, 9
Offset: 1
Examples
see A244807 example section for its diagram.
Crossrefs
Programs
-
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_] := 3n^2 - 6n + 4 (* see formula section of A244807 *); Array[ almostNatural[ f@#, 10] &, 105]