Squarefree semiprimes iteration.sf 453 B

1234567891011
  1. #!/usr/bin/ruby
  2. # Take a squarefree semiprime and take the difference between its prime factors. If this difference is a squarefree semiprime repeat the process. Sequence lists the smallest squarefree semiprime that generates other squarefree semiprimes in the first n steps of this process.
  3. # https://oeis.org/A296808
  4. # 6, 34, 82, 226, 687, 4786, 14367, 28738, 373763, 21408927, 158279834
  5. # a(9) = 21408927
  6. # a(10) = 158279834
  7. # a(11) = 2690757467