prog.sf 262 B

12345678910111213141516
  1. #!/usr/bin/ruby
  2. # a(n) = tau( sigma_n(n) ), where tau is the number of divisors of n.
  3. # https://oeis.org/A064165
  4. include("../../../factordb/auto.sf")
  5. func a(n) {
  6. sigma(sigma(n,n), 0)
  7. }
  8. for n in (1..1000) {
  9. #print(a(n), ", ")
  10. say "#{n} #{a(n)}"
  11. }