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.

A065925 Smallest k such that sopf(n+k) = sopf(k), where sopf = A008472.

Original entry on oeis.org

5, 2, 7, 4, 114, 2, 5, 8, 13, 10, 25, 4, 5, 2, 19, 16, 85, 6, 5, 5, 209, 22, 25, 3, 493, 26, 31, 4, 20, 2, 5, 32, 7, 34, 516, 12, 33, 38, 10, 10, 99, 6, 5, 44, 57, 46, 25, 6, 5, 50, 49, 52, 52, 18, 855, 8, 61, 58, 295, 4, 261, 2, 91, 64, 602, 6, 5, 68, 21, 10, 25, 9, 7, 74, 13, 76
Offset: 1

Views

Author

Jason Earls, Nov 28 2001

Keywords

Examples

			a(6) = 2 because A008472(2) = A008472(6+2) = 2, but A008472(1) = 0 doesn't equal A008472(6+1) = 7.
		

References

  • J. Earls, Mathematical Bliss, Pleroma Publications, 2009, pages 99-100. ASIN: B002ACVZ6O [From Jason Earls, Nov 26 2009]

Crossrefs

Programs

  • Mathematica
    Table[k = 1; While[Total[FactorInteger[n + k][[All, 1]]] != Total[FactorInteger[k][[All, 1]]], k++]; k, {n, 76}] (* Michael De Vlieger, Jan 11 2017 *)
  • PARI
    sopf(n) = local(fac, i); fac=factor(n); sum(i=1,matsize(fac)[1],fac[i,1])
    A065925(m)={local(k,n); for(k=1,m,n=1; while(sopf(n)!=sopf(n+k), n++); print1(n,","))} \\ Klaus Brockhaus
    
  • Python
    from sympy import primefactors
    from itertools import count, dropwhile
    def sopf(n): return sum(p for p in primefactors(n))
    def a(n):
      k = 1
      while sopf(n+k) != sopf(k): k += 1
      return k
    print([a(n) for n in range(1, 77)]) # Michael S. Branicky, May 02 2021

A065927 Records in A065925.

Original entry on oeis.org

5, 7, 114, 209, 493, 516, 855, 1194, 1274, 2815, 2834, 3180, 3186, 5225, 6010, 8056, 8357, 8954, 11439, 13684, 14599, 15748, 17298, 17384, 17784, 20940, 25886, 36223, 36938, 41796, 53725, 64855, 67942, 69167, 72468, 79143, 79516, 86232, 96845, 120708, 125709
Offset: 1

Views

Author

Jason Earls, Nov 28 2001

Keywords

Crossrefs

Programs

  • PARI
    sopf(n) = local(fac, i); fac=factor(n); sum(i=1,matsize(fac)[1],fac[i,1])
    A065927(m)= {local(a,n,k); a=0; for(k=1,m,n=1; while(sopf(n)!=sopf(n+k), n++); if(n>a,a=n; print1(n,",")))} // Klaus Brockhaus

Extensions

More terms from David Wasserman, Sep 19 2002
More terms from Sean A. Irvine, Sep 21 2023
Showing 1-2 of 2 results.