Problem 2323. Pandigital number n°3 (Inspired by Project Euler 32)
After Problem 2319 and 2320.
An n-digit number is pandigital if it makes use of all the digits 1 to n exactly ONCE. For example, the 5-digit number 15234, is 1 through 5 pandigital.
The product 7254 is unusual, as the identity, 39 × 186 = 7254, containing multiplicand, multiplier, and product is 1 through 9 pandigital ([391867254]).
Find the sum of all products whose multiplicand/multiplier/product identity can be written as a 1 through n pandigital (n is given in input).
HINT1: Some products can be obtained in more than one way so be sure to only include it once in your sum.
HINT2: All in good time...
Solution Stats
Problem Comments
-
3 Comments
In the place of "Find the sum of all products whose...", I would say: "Find the number of all products whose..." ;-)
Why [] instead of 0?
Since I have kludged a solution together, can I have a hint?
Solution Comments
Show commentsProblem Recent Solvers33
Suggested Problems
-
17962 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
368 Solvers
-
Create a matrix X, where each column is a shifted copy of the vector v
201 Solvers
-
252 Solvers
-
Is this is a Tic Tac Toe X Win?
508 Solvers
More from this Author43
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!