A370675 Number of unordered pairs of n-digit numbers k1, k2 such that their product has the same multiset of digits as in both k1 and k2 together.
0, 7, 156, 3399, 112025, 4505706, 213002162
Offset: 1
Examples
For n=2 the a(2)=7 solutions are: 15 * 93 = 1395 21 * 60 = 1260 21 * 87 = 1827 27 * 81 = 2187 30 * 51 = 1530 35 * 41 = 1435 80 * 86 = 6880
Links
- Danila Potapov, Numbers that flip when multiplied (in Russian).
Crossrefs
Programs
-
PARI
a370675(n) = {my (np=0, n1=10^(n-1), n2=10*n1-1); for (k1=n1, n2, my(s1=digits(k1)); for (k2=k1, n2, my (s2=digits(k2)); my(sp=digits(k1*k2)); if (#s1+#s2==#sp && vecsort(concat(s1,s2)) == vecsort(sp), np++))); np} \\ Hugo Pfoertner, Feb 26 2024
Comments