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.

A131825 Numbers k such that cototient(x) = k has exactly 1 solution.

Original entry on oeis.org

0, 2, 3, 5, 6, 14, 18, 20, 22, 28, 38, 40, 42, 62, 66, 68, 74, 76, 78, 82, 98, 102, 104, 106, 114, 124, 126, 136, 148, 156, 178, 194, 196, 200, 204, 208, 226, 242, 246, 248, 254, 258, 262, 296, 302, 306, 308, 314, 330, 338, 342, 356, 370, 374, 378, 388, 398, 400, 408, 416, 418, 422, 426, 434, 438
Offset: 1

Views

Author

Franz Vrabec, Jul 19 2007

Keywords

Examples

			6 = cototient(10) and for all x<>10, cototient(x) <> 6.
		

Crossrefs

Programs

  • Maple
    N:= 1000: # for all terms <= N
    cotot:= n -> n - numtheory:-phi(n):
    V:= Vector(N):
    for n from 2 to N^2 do
      v:= cotot(n);
      if v  > N then next fi;
      V[v]:= V[v]+1;
    od:
    0, op(select(t -> V[t]=1, [$1..N])); # Robert Israel, May 26 2019
  • PARI
    lista(nn) = {my(v=vector(nn^2+2, i, i - eulerphi(i))); for(k=0, nn, if(sum(i=1, k*k+2, k==v[i])==1, print1(k, ", "))); } \\ Jinyuan Wang, Mar 21 2020

Extensions

More terms from Robert Israel, May 26 2019