Do you know what is interesting about the number 1729?
That’s right: it’s the third Zeisel number, a number given by
, where
and
are the distinct prime factors, related by the recurrence relation
. For example, A and B are 1 and 6 for 1729 since 1+6 = 7, 7+6 = 13, 13+6 = 19, and
.
Write a function to determine whether a number is a Zeisel number. If it is, return the values of A and B. If not, set A and B to NaN.
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers7
Suggested Problems
-
3038 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1992 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
558 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
647 Solvers
-
300 Solvers
More from this Author321
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
In Firefox and Bing, the TeX writing is displaced below the rest of the line. Does anyone have a fix?
@Chris I'm seeing that too (using Chrome). I guess it's a server-side problem.