A short program finds the first number to be 3792
3792^2 = 14379264
The program (in Ruby) was:
(4..1000000).each{|n| puts [n,n**2].join(' ') if (n**2).to_s =~ /#{n}.*[1-9]/};true
output:
3792 14379264
14651 214651801
495475 245495475625
505025 255050250625
971582 943971582724
|
Posted by Paul
on 2019-04-11 15:22:45 |