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.

Showing 1-4 of 4 results.

A349660 Numbers which are the sum of a prime and the square of the next prime.

Original entry on oeis.org

11, 28, 54, 128, 180, 302, 378, 548, 864, 990, 1400, 1718, 1890, 2252, 2856, 3534, 3780, 4550, 5108, 5400, 6314, 6968, 8004, 9498, 10298, 10710, 11552, 11988, 12878, 16242, 17288, 18900, 19458, 22340, 22950, 24800, 26726, 28052, 30096, 32214, 32940, 36662
Offset: 1

Views

Author

Karl-Heinz Hofmann, Nov 24 2021

Keywords

Examples

			a(2) = 3 + 5^2 = 28; a(3) = 5 + 7^2 = 54.
		

Crossrefs

Programs

  • Mathematica
    nterms=100;Table[Prime[n]+Prime[n+1]^2,{n,nterms}] (* Paolo Xausa, Nov 24 2021 *)
  • PARI
    a(n) = prime(n) + prime(n+1)^2; \\ Michel Marcus, Nov 24 2021
  • Python
    from sympy import sieve;
    for n in range(1,10001): print(sieve[n] + sieve[n+1]**2)
    

Formula

a(n) = prime(n) + prime(n+1)^2.
a(n) = A000040(n) + A001248(n+1).
a(n) = A036690(n+1) - A001223(n).
a(n) = A001043(n) + A036689(n+1). - Michel Marcus, Nov 24 2021

A200474 a(n) = floor(10*(prime(n+1)-prime(n))/log(prime(n))^2).

Original entry on oeis.org

3, 6, 2, 4, 6, 1, 5, 3, 1, 2, 4, 3, 1, 3, 2, 1, 3, 2, 3, 3, 1, 0, 1, 0, 1, 6, 1, 2, 0, 4, 0, 2, 2, 1, 2, 2, 0, 3, 0, 1, 0, 4, 4, 1, 0, 1, 2, 0, 3, 1, 1, 1, 0, 1, 1, 0, 3, 4, 1, 0, 1, 4, 1, 2, 0, 1, 1, 2, 1, 1, 1, 1, 2, 1, 2, 2, 0, 2, 0, 1, 1, 1, 2, 1, 0, 1, 3
Offset: 5

Views

Author

Arkadiusz Wesolowski, Nov 18 2011

Keywords

Comments

Cramer's conjecture is true if, for every n >= 5, a(n) is smaller than 10.
If Cramer's conjecture is true, then Andrica's conjecture is true. [John W. Nicholson, Feb 06 2012]
Some mathematicians are trying to prove: if Andrica's conjecture is true, then Cramer's conjecture is true. [Arkadiusz Wesolowski, Feb 22 2012]

Examples

			a(9) = 6 because 10*(29-23)/log(23)^2 = 6.1029419977....
		

Crossrefs

Programs

  • Mathematica
    Table[Floor[10*(Prime[n + 1] - Prime[n])/Log[Prime[n]]^2], {n, 5, 100}]

Formula

a(n) = floor(10*A001223(n)/log(A000040(n))^2), n >= 5.

A133697 a(n) = smallest number k such that P(k)/P(k+1) > P(k+1)/P(k+2) > ... > P(k+n+1)/P(k+n+2), where P(k) = k-th prime = A000040(k).

Original entry on oeis.org

1, 7, 69, 420, 1796, 12073, 101397, 1139211, 5440508, 320620306, 2058187481, 36451609409, 54594153615, 4100904808215
Offset: 0

Views

Author

Philippe LALLOUET (philip.lallouet(AT)orange.fr), Jan 04 2008

Keywords

Comments

In other words, the rank of the smallest prime number such that the ratio between each prime and the following one is decreasing for at least n+2 consecutive ratios.
The sequence of primes P[a(n)] begins 2,17,347,2903,15373,128981,... - Robert G. Wilson v, Mar 01 2008
a(9) > 120000000. - Robert G. Wilson v, Mar 01 2008
If 113 is, as conjectured, the last term of A124129, then P(a(n)) = A158939(n+2). Proof: Let x and y be the prime gaps following the prime p = P(j) > 113, so that P(j+1) = P(j) + x and P(j+2) = P(j) + x + y. The inequality P(j)/P(j+1) > P(j+1)/P(j+2) can be written as p/(p+x) > (p+x)/(p+x+y), which simplifies to y > x+x^2/p. By assumption, x^2 < p, so this holds if and only if y > x. So the condition P(j)/P(j+1) > P(j+1)/P(j+2) is equivalent to increasing prime gaps, P(j+2) - P(j+1) > P(j+1) - P(j). (In fact, since all prime gaps except the first are even, it is enough to assume the weaker conjecture that 7 is the only prime P(j) such that (P(j+1)-P(j))^2 >= 2*P(j).) - Pontus von Brömssen, Nov 19 2021

Examples

			P(1)=2, P(2)=3, P(3)=5; 2/3 > 3/5, hence a(0)=1.
17/19 > 19/23 > 23/29 is the first double inequality satisfied by consecutive primes, hence a(1)=7 as 17=P(7).
347/349 > 349/353 > 353/359 > 359/367 is the first triple inequality satisfied by consecutive primes, hence a(2)=69 as 347=P(69).
		

Crossrefs

Programs

  • Mathematica
    (* for the 6th term *) n = 12000; While[ Prime[n]/Prime[n + 1] < Prime[n + 1]/Prime[n + 2] || Prime[n + 1]/Prime[n + 2] < Prime[n + 2]/Prime[n + 3] || Prime[n + 2]/Prime[n + 3] < Prime[n + 3]/Prime[n + 4] || Prime[n + 3]/Prime[n + 4] < Prime[n + 4]/Prime[n + 5] || Prime[n + 4]/Prime[n + 5] < Prime[n + 5]/Prime[n + 6] || Prime[n + 5]/Prime[n + 6] < Prime[n + 6]/Prime[n + 7] || Prime[n + 6]/Prime[n + 7] < Prime[n + 7]/Prime[n + 8], n++ ]; Print[n] (* Robert G. Wilson v, Mar 01 2008 *)

Extensions

a(6)-a(8) from Robert G. Wilson v, Mar 01 2008
a(9)-a(13) (based on data for A158939) from Pontus von Brömssen, Nov 19 2021
Edited to make name and offset consistent by Pontus von Brömssen, Nov 19 2021

A283225 Primes prime(k) such that prime(k)^2 mod prime(k+2) is different from prime(k+2)^2 mod prime(k).

Original entry on oeis.org

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 43, 47, 53, 59, 61, 73, 79, 83, 89, 109, 113, 137, 139, 199, 211, 241, 283, 293, 313, 317, 523, 1321, 1327
Offset: 1

Views

Author

Arnaud Vernier, Mar 03 2017

Keywords

Comments

I conjecture that there are no other terms in this sequence.
A124129 is constructed in a similar way: by comparing the values of prime(k)^2 mod prime(k+1) and prime(k+1)^2 mod prime(k).
If it exists, then a(35) > 10^12. - Lucas A. Brown, Feb 11 2021

Examples

			a(10) = prime(10) = 29 is in the sequence because the remainder of the division of 29^2 = 841 by prime(12) = 37 is 27, which is different from the remainder of the division of 37^2 = 1369 by prime(10) = 29, which is 6.
		

Crossrefs

Cf. A124129.

Programs

  • Mathematica
    Select[Prime[Range[250]],PowerMod[#,2,NextPrime[#,2]] != PowerMod[ NextPrime[ #,2],2,#]&]  (* Harvey P. Dale, Nov 17 2020 *)
Showing 1-4 of 4 results.