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.

A256444 Numbers k such that sigma(k) = 2*(phi(k-1)+1).

Original entry on oeis.org

3, 5, 17, 26, 257, 65537, 10866583226
Offset: 1

Views

Author

Jaroslav Krizek, Mar 31 2015

Keywords

Comments

Subsequence of A256439. Supersequence of Fermat primes (A019434).
a(8) > 10^13. - Giovanni Resta, Jul 13 2015

Examples

			17 is in the sequence because sigma(17) = 18 = 2*(phi(16-1)+1) = 2*9.
		

Crossrefs

Programs

  • Magma
    Set(Sort([n: n in [2..1000000] | SumOfDivisors(n) / (EulerPhi(n-1) + 1) eq 2 ]));
    
  • Mathematica
    Select[Range@ 100000, DivisorSigma[1, #] == 2 (EulerPhi[# - 1] + 1) &] (* Michael De Vlieger, Mar 31 2015 *)
  • PARI
    first(m)={ my(v=vector(m),i,r);r=0;for(i=1,m,until(sigma(r)===2*(eulerphi(r-1)+1),r++);v[i]=r;print1(r,", "););v;} \\ Anders Hellström, Jul 29 2015

Extensions

a(7) from Giovanni Resta, Jul 13 2015