search.sf 550 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/ruby
  2. # Numbers that are not powers of primes (A024619) whose harmonic mean of their proper unitary divisors is an integer.
  3. # https://oeis.org/A335270
  4. # Conjecture: all terms have the form n*(usigma(n)-1) where usigma(n)-1 is prime.
  5. for k in (1..1e9) {
  6. var p = k.usigma.dec
  7. p.is_prime || next
  8. var m = (k * p)
  9. var o = m.omega
  10. o > 1 || next
  11. if (m.usigma.dec `divides` m*o.ipow2.dec) {
  12. say [k, m]
  13. }
  14. }
  15. __END__
  16. [12, 228]
  17. [35, 1645]
  18. [75, 7725]
  19. [231, 88473]
  20. [108558, 20295895122]
  21. [120620, 22550994580]