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

A075565 Numbers n such that sopf(n) = sopf(n-1) + sopf(n-2), where sopf(x) = sum of the distinct prime factors of x.

Original entry on oeis.org

5, 23, 58, 901, 1552, 1921, 4195, 6280, 10858, 19649, 20385, 32017, 63657, 65704, 83272, 84120, 86242, 105571, 145238, 181845, 271329, 271742, 316711, 322954, 331977, 345186, 379660, 381431, 409916, 424504, 490256, 524477, 542566, 550272, 561661, 565217, 566560
Offset: 1

Views

Author

Joseph L. Pe, Oct 18 2002

Keywords

Examples

			The sum of the distinct prime factors of 23 is 23; the sum of the distinct prime factors of 22 = 2 * 11 is 2 + 11 = 13; the sum of the distinct prime factors of 21 = 3 * 7 is 3 + 7 = 10; Hence 23 belongs to the sequence.
		

Crossrefs

Programs

  • Magma
    [k:k in [5..560000]| &+PrimeDivisors(k-1)+ &+PrimeDivisors(k-2) eq &+PrimeDivisors(k)]; // Marius A. Burtea, Feb 12 2020
    
  • Mathematica
    p[n_] := Apply[Plus, Transpose[FactorInteger[n]][[1]]]; Select[Range[4, 10^5], p[ # - 1] + p[ # - 2] == p[ # ] &]
  • PARI
    sopf(n) = my(f=factor(n)); sum(k=1, #f~, f[k,1]);
    isok(n) = sopf(n) == sopf(n-1) + sopf(n-2); \\ Michel Marcus, Feb 12 2020
    
  • Python
    from sympy import primefactors
    def sopf(n): return sum(primefactors(n))
    def afind(limit):
      sopfm2, sopfm1, sopf = 2, 3, 2
      for k in range(4, limit+1):
        if sopf == sopfm1 + sopfm2: print(k, end=", ")
        sopfm2, sopfm1, sopf = sopfm1, sopf, sum(primefactors(k+1))
    afind(600000) # Michael S. Branicky, May 23 2021

Extensions

Edited and extended by Ray Chandler, Feb 13 2005

A076533 Numbers n such that sum of the distinct prime factors of phi(n) = sum of the distinct prime factors of sigma(n).

Original entry on oeis.org

1, 3, 14, 35, 42, 70, 105, 119, 209, 210, 238, 248, 297, 357, 412, 418, 477, 594, 595, 616, 627, 714, 744, 954, 1045, 1142, 1178, 1190, 1236, 1240, 1254, 1328, 1339, 1463, 1485, 1672, 1674, 1703, 1736, 1785, 1848, 1863, 2079, 2090, 2376, 2385, 2540, 2728
Offset: 1

Views

Author

Joseph L. Pe, Oct 18 2002

Keywords

Examples

			sopf(sigma(14)) = 5; sopf(phi(14)) = 5; hence 14 is a term of the sequence.
		

Crossrefs

Programs

  • Mathematica
    p[n_] := Apply[Plus, Transpose[FactorInteger[n]][[1]]]; Select[Range[3, 10^4], p[DivisorSigma[1, # ]] == p[EulerPhi[ # ]] &]
    Select[Range[3000],Total[FactorInteger[DivisorSigma[1,#]][[All,1]]] == Total[ FactorInteger[EulerPhi[#]][[All,1]]]&] (* Harvey P. Dale, Sep 20 2016 *)
  • PARI
    sopf(n)=my(f=factor(n)[,1]); sum(i=1,#f,f[i])
    is(n)=sopf(sigma(n))==sopf(eulerphi(n)) \\ Charles R Greathouse IV, Mar 09 2014

Extensions

Edited by Ray Chandler, Feb 13 2005
a(1) inserted by Charles R Greathouse IV, Mar 09 2014

A075784 Numbers n such that sopf(n) = sopf(n-1) + sopf(n-2) + sopf(n-3), where sopf(x) = sum of the distinct prime factors of x.

Original entry on oeis.org

23156, 59785, 72521, 98426, 362231, 480223, 506123, 1049790, 1077252, 1133953, 1202068, 1277411, 1327229, 1627040, 2200058, 2317712, 2368026, 3610497, 4174012, 5668196, 6302128, 6324778, 6946075, 7179599, 7786163, 8053816
Offset: 1

Views

Author

Joseph L. Pe, Oct 18 2002

Keywords

Examples

			The sum of the distinct prime factors of 23156 is 2 + 7 + 827 = 836; the sum of the distinct prime factors of 23155 is 5 + 11 + 421 = 437; the sum of the distinct prime factors of 23154 is 2 + 3 + 17 + 227 = 249; the sum of the distinct prime factors of 23153 is 13 + 137 = 150; and 836 = 437 + 249 + 150. Hence 23156 belongs to the sequence.
		

Crossrefs

Programs

  • Mathematica
    p[n_] := Apply[Plus, Transpose[FactorInteger[n]][[1]]]; Select[Range[5, 10^5], p[ # - 1] + p[ # - 2] + p[ # - 3] == p[ # ] &]
    Flatten[Position[Partition[Table[Total[FactorInteger[n][[All,1]]],{n,8054000}],4,1],?(Total[Most[#]]==Last[#]&)]//Quiet]+3 (* _Harvey P. Dale, Feb 22 2020 *)

Extensions

Edited and extended by Ray Chandler, Feb 13 2005

A075846 Numbers k such that sopf(k) = (1/2)*(sopf(k+1) + sopf(k-1)), where sopf(x) = sum of the distinct prime factors of x.

Original entry on oeis.org

10, 21, 35, 82, 221, 296, 961, 2665, 12629, 13117, 30317, 54485, 99145, 125750, 132728, 142198, 156379, 185461, 225898, 241057, 265227, 265643, 280918, 281396, 284531, 326698, 379331, 393335, 400685, 437241, 437999, 548101, 584502, 641561
Offset: 1

Views

Author

Joseph L. Pe, Oct 18 2002

Keywords

Examples

			The sum of the distinct prime factors of 21 is 3 + 7 = 10; the sum of the distinct prime factors of 22 is 2 + 11 = 13; the sum of the distinct prime factors of 20 is 2 + 5 = 7; and 10 = (1/2)*(13 + 7). Hence 21 belongs to the sequence.
		

Crossrefs

Programs

Extensions

Edited and extended by Ray Chandler, Feb 13 2005

A076527 Numbers n such that sopf(n) = sopf(n-1) - sopf(n-2), where sopf(x) = sum of the distinct prime factors of x.

Original entry on oeis.org

8, 66, 2883, 3264, 3552, 13872, 21386, 26896, 29698, 29768, 31980, 36567, 40517, 65305, 72012, 82719, 101639, 110848, 160230, 211646, 237136, 237568, 238303, 242606, 299186, 309960, 378014, 393208, 439105, 445795, 455182, 527078, 570021
Offset: 1

Views

Author

Joseph L. Pe, Oct 18 2002

Keywords

Examples

			The sum of the distinct prime factors of 66 is 2 + 3 + 11 = 16; the sum of the distinct prime factors of 65 is 5 + 13 = 18; the sum of the distinct prime factors of 64 is 2; and 16 = 18 - 2. Hence 66 belongs to the sequence.
		

Crossrefs

Programs

  • Magma
    [k:k in [4..571000]| &+PrimeDivisors(k-1) - &+PrimeDivisors(k-2) eq (&+PrimeDivisors(k))]; // Marius A. Burtea, Feb 12 2020
  • Mathematica
    p[n_] := Apply[Plus, Transpose[FactorInteger[n]][[1]]]; Select[Range[4, 10^5], p[ # ] == p[ # - 1] - p[ # - 2] &]

Extensions

Edited and extended by Ray Chandler, Feb 13 2005

A076531 Numbers n such that sopf(phi(n)) = phi(sopf(n)), where sopf(x) = sum of the distinct prime factors of x.

Original entry on oeis.org

3, 203, 322, 377, 644, 851, 931, 1166, 1211, 1288, 1421, 1666, 1815, 1862, 2332, 2576, 3332, 3724, 4664, 4830, 5152, 6401, 6517, 6664, 7042, 7241, 7448, 9075, 9328, 9555, 9660, 9845, 9922, 9947, 10304, 10465, 11662, 11814, 11830, 12558, 12903, 13034
Offset: 1

Views

Author

Joseph L. Pe, Oct 18 2002

Keywords

Examples

			sopf(phi(203)) = sopf(168) = 12; phi(sopf(203)) = phi(36) = 12 hence 203 is a term of the sequence.
		

Crossrefs

Programs

  • Mathematica
    p[n_] := Apply[Plus, Transpose[FactorInteger[n]][[1]]]; Select[Range[3, 10^4], p[EulerPhi[ # ]] == EulerPhi[ p[ # ]] &]
  • PARI
    sopf(n) = my(f=factor(n)); sum(j=1, #f~, f[j, 1]); \\ A008472
    isok(n) = eulerphi(sopf(n)) == sopf(eulerphi(n)); \\ Michel Marcus, Oct 04 2019

Extensions

Edited and extended by Ray Chandler, Feb 13 2005

A076532 Numbers n such that sopf(sigma(n)) = sigma(sopf(n)), where sopf(x) = sum of the distinct prime factors of x.

Original entry on oeis.org

2, 90, 425, 490, 605, 630, 726, 735, 750, 816, 2250, 2695, 3185, 3234, 3420, 3822, 4176, 5096, 5250, 6591, 7644, 8470, 9100, 9425, 10296, 10780, 11616, 11638, 12321, 15750, 16940, 18096, 22736, 23276, 25578, 27360, 27783, 28500, 31900, 36400
Offset: 1

Views

Author

Joseph L. Pe, Oct 18 2002

Keywords

Examples

			sopf(sigma(90)) = sopf(234) = 18; sigma(sopf(90)) = sigma(10) = 18, hence 90 is a term of the sequence.
		

Crossrefs

Programs

  • Mathematica
    p[n_] := Apply[Plus, Transpose[FactorInteger[n]][[1]]]; Select[Range[2, 10^4], p[DivisorSigma[1, # ]] == DivisorSigma[1, p[ # ]] &]
  • PARI
    isok(n) = (n>1) && sigma(sopf(n)) == sopf(sigma(n)); \\ Michel Marcus, Oct 04 2019

Extensions

Edited and extended by Ray Chandler, Feb 13 2005
Showing 1-7 of 7 results.