login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Index of first row in triangle A199333 containing n-th prime.
3

%I #8 Jul 13 2013 12:04:18

%S 2,3,4,4,6,5,8,9,6,6,12,7,14,15,16,7,18,19,20,9,22,23,24,25,8,27,28,8,

%T 30,31,11,33,34,35,36,9,12,39,40,41,42,43,13,45,46,47,9,10,50,14,52,

%U 53,54,55,56,57,58,15,60,61,62,63,64,65,66,16,11,69,70

%N Index of first row in triangle A199333 containing n-th prime.

%C a(n) <= n + 1.

%H Reinhard Zumkeller, <a href="/A199424/b199424.txt">Table of n, a(n) for n = 1..150</a>

%o (Haskell)

%o import Data.List (findIndex)

%o import Data.Maybe (fromJust)

%o a199424 n = fromJust $ findIndex (elem $ a000040 n) a199333_tabl

%Y Cf. A199425, A058084.

%K nonn

%O 1,1

%A _Reinhard Zumkeller_, Nov 09 2011