cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A244681 The spiral of Champernowne read by the North ray.

This page as a plain text file.
%I A244681 #6 Jul 05 2014 17:01:36
%S A244681 1,4,2,2,5,5,4,1,9,1,1,4,2,2,3,3,3,6,4,5,3,6,6,4,7,8,9,1,4,1,1,1,3,5,
%T A244681 4,1,4,3,7,1,7,4,0,2,2,9,3,2,9,6,7,2,8,7,1,3,9,1,6,3,2,8,1,4,7,8,6,4,
%U A244681 4,2,1,5,3,8,7,5,4,8,3,6,7,1,9,7,2,8,6,7,9,7,3,8,8,0,0,9,9,6,8,0,0,2,1,8,0
%N A244681 The spiral of Champernowne read by the North ray.
%F A244681 See A244677 formula section.
%e A244681 See A244677 for the spiral of David Gawen Champernowne.
%t A244681 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_] := 4n^2 - 9n + 6 (* see A244677 formula section *); Array[ almostNatural[ f@#, 10] &, 105]
%Y A244681 Cf. A033307, A054556, A033952, A244677 - A244688, A244690 - A244692.
%K A244681 nonn,easy
%O A244681 1,2
%A A244681 _Robert G. Wilson v_, Jul 04 2014