A337784 Smaller of two consecutive oblong numbers which are anagrams of each other.
23256, 530712, 809100, 11692980, 17812620, 20245500, 22834062, 23527350, 29154600, 83768256, 182236500, 189847062, 506227500, 600127506, 992218500, 1363566402, 1640209500, 2175895962, 2422657620, 2477899062, 2520190602, 3041687952, 3764129256, 4760103042
Offset: 1
Examples
530712 is in the sequence because it is an oblong number, 530712 = 728 * 729, and the next oblong number, 532170 = 729 * 730, is an anagram of 530712.
Programs
-
Mathematica
s = {}; o1 = 1; d1 = Sort @ IntegerDigits[o1]; Do[o2 = n*(n + 1); d2 = Sort @ IntegerDigits[o2]; If[d2 == d1, AppendTo[s, o1]]; o1 = o2; d1 = d2, {n, 2, 70000}]; s (* Amiram Eldar, Sep 21 2020 *)
-
PARI
ok(k) = {my(b, m=0); if(issquare(4*k + 1), b=truncate(sqrt(4*k + 1) - 1)/2; if(vecsort(digits(k)) == vecsort(digits((b + 1)*(b + 2))), m = 1)); m}
Comments