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.

A077148 Smallest k such that there are n numbers m relatively prime to n in range n < m < k.

Original entry on oeis.org

3, 6, 8, 12, 12, 24, 16, 24, 23, 34, 24, 48, 28, 46, 44, 48, 36, 72, 40, 70, 59, 70, 48, 96, 57, 82, 68, 94, 60, 140, 64, 96, 87, 106, 87, 144, 76, 118, 102, 140, 84, 188, 88, 140, 129, 142, 96, 192, 107, 174, 132, 164, 108, 216, 130, 186, 147, 178, 120, 284, 124
Offset: 1

Views

Author

Amarnath Murthy, Oct 30 2002

Keywords

Comments

a(p) = 2p+2 if p is a prime.

Examples

			a(6) = 24 as there are 6 coprime numbers to 6 between 6 and 24: 7, 11, 13, 17, 19, 23.
		

Programs

  • PARI
    for(n=1,100,s=0:for(k=n+1,10^8,if(gcd(k,n)==1,s=s+1: if(s==n,s=k+1:break))):print1(s","))

Extensions

Corrected and extended by Ralf Stephan, Mar 26 2003