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.

A105930 Starting position of the n-th prime in the almost-natural numbers sequence A007376.

This page as a plain text file.
%I A105930 #5 Mar 12 2015 22:27:44
%S A105930 2,3,5,7,12,16,24,28,36,48,52,64,72,76,84,96,108,112,124,132,136,148,
%T A105930 156,168,184,193,199,211,217,229,271,283,301,307,337,343,361,379,391,
%U A105930 409,427,433,463,469,481,487,523,559,571,577,589,607,613,643,661,679
%N A105930 Starting position of the n-th prime in the almost-natural numbers sequence A007376.
%C A105930 Prime number positions in the "counting digits": write the natural numbers as an infinite sequence of digits, starting at the left. a(n) is the subscript (i.e. the position in this sequence of "counting digits") of the first digit of the n-th prime.
%e A105930 a(6)=16 because the sixth prime (13) appears at the 16th (and 17th) position in the "counting digits": 123456789101112-13-141516
%t A105930 f[n_] := Block[{d = Floor[ Log[10, n] + 1]}, d(n - 1) - Sum[9i*10^(d - i - 1), {i, d - 1}] + 1]; Table[ f[ Prime[n]], {n, 56}] (* _Robert G. Wilson v_, Apr 30 2005 *)
%Y A105930 Cf. A007376, A103575.
%K A105930 base,easy,nonn
%O A105930 2,1
%A A105930 _Alexandre Wajnberg_, Apr 26 2005
%E A105930 Edited by _Robert G. Wilson v_, Apr 30 2005