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.

A377791 Primes in A194627.

Original entry on oeis.org

2, 3, 41, 59, 593, 4787, 4937, 8699, 9281, 9491, 44201, 45491, 49429, 59219, 90197, 93251, 93893, 115211, 118661, 136523, 152501, 156467, 166949, 184571, 185477, 189851, 225353, 232091, 236981, 239963, 277577, 364571, 375569, 386731, 428873, 577307, 581941, 662339, 717161, 718931, 758501, 763811
Offset: 1

Views

Author

Robert Israel, Nov 10 2024

Keywords

Examples

			a(3) = 41 because the third prime in A194627 is A194627(9) = 41.
		

Crossrefs

Programs

  • Maple
    v:= 1: p:= 0: q:= 0: np:= 0: R:= NULL:
    for i from 1 while np < 100 do
      if isprime(v) then p:= p+1; R:= R, v; np:= np+1 else q:= q+1 fi;
      v:= p^2 + q^2 + 1;
    od:
    R;

Formula

a(n) = A194627(A377882(n)).
a(n) = (n-1)^2 + (A377882(n)-n)^2 + 1.