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-2 of 2 results.

A209211 Numbers n such that n-1 and phi(n) are relatively prime.

Original entry on oeis.org

1, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 54, 56, 58, 60, 62, 64, 68, 72, 74, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 114, 116, 118, 120, 122, 126, 128, 132, 134, 136, 138
Offset: 1

Views

Author

Keywords

Comments

A063994(a(n)) = 1. - Reinhard Zumkeller, Mar 02 2013
a(n) = A111305(n-2) for n >= 3. - Emmanuel Vantieghem, Jul 03 2013
n such that A049559(n) = 1. Includes A100484 and A000079. - Robert Israel, Nov 09 2015
All terms except the first one are even. Missing even terms are A039772. - Robert G. Wilson v, Sep 26 2016
Numbers n such that A187730(n) = 1. - Thomas Ordowski, Dec 29 2016

Crossrefs

Programs

  • Haskell
    a209211 n = a209211_list !! (n-1)
    a209211_list = filter (\x -> (x - 1) `gcd` a000010 x == 1) [1..]
    -- Reinhard Zumkeller, Mar 02 2013
    
  • Maple
    select(n -> igcd(n-1, numtheory:-phi(n)) = 1, [$1..1000]); # Robert Israel, Nov 09 2015
  • Mathematica
    Select[Range[200], GCD[# - 1, EulerPhi[#]] == 1 &]
  • PARI
    isok(n) = gcd(n-1, eulerphi(n)) == 1; \\ Michel Marcus, Sep 26 2016

A227180 Composite numbers n such that b^(n-1) == 1 (mod n) implies b == -1 or +1 (mod n).

Original entry on oeis.org

4, 6, 8, 9, 10, 12, 14, 16, 18, 20, 22, 24, 26, 27, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 54, 56, 58, 60, 62, 64, 68, 72, 74, 78, 80, 81, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 114, 116, 118, 120, 122, 126, 128, 132, 134, 136, 138, 140, 142, 144, 146, 150, 152, 156, 158, 160, 162, 164, 166, 168, 170
Offset: 1

Views

Author

Emmanuel Vantieghem, Jul 03 2013

Keywords

Comments

The sequence is the union of A111305 with {3^k | k > 1}.
The composite numbers not in this sequence are the Fermat pseudoprimes A181780.

Crossrefs

Programs

  • Mathematica
    FQ[k_]:= Block[{},GCD[EulerPhi[k],k-1]==1||IntegerQ[Log[3,k]]];Select[Range[4,170],FQ]
  • PARI
    is(n)=for(b=2, n-2, if(Mod(b, n)^(n-1)==1, return(0))); !isprime(n) \\ Charles R Greathouse IV, Dec 22 2016
Showing 1-2 of 2 results.