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.

A244808 The hexagonal spiral of Champernowne, read along the 60-degree ray.

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