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.

A244816 The hexagonal spiral of Champernowne, read along the South (or 180-degree) ray.

This page as a plain text file.
%I A244816 #7 Mar 14 2015 00:14:10
%S A244816 1,1,4,6,7,4,1,4,0,3,3,3,6,4,4,9,5,1,2,8,2,1,7,9,5,2,3,9,4,2,0,9,9,3,
%T A244816 7,9,0,4,6,8,7,5,6,7,0,6,6,6,9,7,8,4,4,8,0,2,5,6,3,3,0,1,9,0,1,2,4,2,
%U A244816 7,1,4,9,5,4,3,5,6,8,1,7,7,4,1,8,4,9,5,4,5,2,1,8,7,2,2,3,3,0,9,4,6,0,3,6,8
%N A244816 The hexagonal spiral of Champernowne, read along the South (or 180-degree) ray.
%F A244816 (12n^2 - 19n + 8)th almost natural number (A033307), Also see formula section of A056105.
%e A244816 see A244807 example section for its diagram.
%t A244816 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_] := 12n^2 - 19n + 8 (* see formula section of A244807 *); Array[ almostNatural[ f@#, 10] &, 105]
%Y A244816 Cf. A007376, A244806, A244807, A244808, A244809, A244810, A244811, A244812, A244813, A244814, A244815, A244817, A244818.
%K A244816 nonn,easy
%O A244816 1,3
%A A244816 _Robert G. Wilson v_, Jul 06 2014