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.

A092939 Index of the first occurrence of prime(n) in A092938.

Original entry on oeis.org

1, 2, 10, 8, 52, 18, 57, 36, 96, 40, 110, 249, 154, 328, 123, 288, 495, 125, 826, 343, 546, 431, 670, 833, 694, 1555, 216, 1399, 1195, 1620, 1780, 3843, 2920, 647, 7722, 873, 7492, 4485, 6768, 8201, 7991, 5178, 11744, 2669, 16060, 5809, 11149, 18177, 5307
Offset: 1

Views

Author

Amarnath Murthy, Mar 23 2004

Keywords

Comments

Smallest k such that prime(n) = A092938(k).

Examples

			First occurrence of prime(6) = 13 is A092938(18), so a(6) = 18.
		

Crossrefs

Programs

  • Maple
    # with f as in A092938N:= ithprime(50): V:= Vector(N): count:= 0:
    for n from 1 while count < 50 do
      v:= f(n);
      if v <= N and V[v]=0 then count:= count+1; V[v]:= n;
      fi;
    od:
    seq(V[ithprime(i)],i=1..50); # Robert Israel, Jul 31 2020
  • PARI
    {v=vector(50);for(n=1,20000,k=2*prime(n);j=1;while(!isprime(k-prime(j)),j=j+1);if(j<=z&&v[j]==0,v[j]=n));for(i=1,#v,print1(v[i],","))}

Extensions

Edited and extended by Klaus Brockhaus, Dec 23 2006