OFFSET
1,2
EXAMPLE
see A244807 example section for its diagram.
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 - 4n + 2 (* see formula section of A244807 *); Array[ almostNatural[ f@#, 10] &, 105]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Robert G. Wilson v, Jul 06 2014
STATUS
approved