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.

This page as a plain text file.
%I A077148 #5 Dec 05 2013 19:55:49
%S A077148 3,6,8,12,12,24,16,24,23,34,24,48,28,46,44,48,36,72,40,70,59,70,48,96,
%T A077148 57,82,68,94,60,140,64,96,87,106,87,144,76,118,102,140,84,188,88,140,
%U A077148 129,142,96,192,107,174,132,164,108,216,130,186,147,178,120,284,124
%N A077148 Smallest k such that there are n numbers m relatively prime to n in range n < m < k.
%C A077148 a(p) = 2p+2 if p is a prime.
%e A077148 a(6) = 24 as there are 6 coprime numbers to 6 between 6 and 24: 7, 11, 13, 17, 19, 23.
%o A077148 (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","))
%K A077148 nonn
%O A077148 1,1
%A A077148 _Amarnath Murthy_, Oct 30 2002
%E A077148 Corrected and extended by _Ralf Stephan_, Mar 26 2003