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.

A373071 Integers k such that k-1 is a multiple of Sum_{prime|k}(prime-1).

Original entry on oeis.org

2, 3, 4, 5, 7, 8, 9, 11, 13, 16, 17, 19, 23, 25, 27, 29, 31, 32, 37, 41, 43, 47, 49, 53, 59, 61, 64, 65, 66, 67, 71, 73, 79, 81, 83, 89, 91, 97, 101, 103, 107, 109, 113, 120, 121, 125, 127, 128, 131, 137, 139, 149, 151, 154, 157, 163, 167, 169, 173, 179, 181, 191, 193, 197, 199
Offset: 1

Views

Author

Rafik Khalfi, May 25 2024

Keywords

Crossrefs

Cf. A055631.
A246655 is a subsequence.

Programs

  • Maple
    f:= proc(n)
     add( d-1, d= numtheory[factorset](n));
     end proc:
    results := []:
    for n from 2 to 1000 do  # Adjust the range as needed
     if mod(n-1, f(n)) = 0 then
     results := [op(results), n];
     end if;
    end do;
    results;
  • Mathematica
    Select[Range[2, 200], Divisible[# - 1, Total[FactorInteger[#][[;; , 1]] - 1]] &] (* Amiram Eldar, May 26 2024 *)
  • PARI
    isok(k) = (k>1) && (((k-1) % vecsum(apply(x->(x-1), factor(k)[,1]))) == 0); \\ Michel Marcus, May 26 2024