Problem 59170. Determine whether a number is a Zeisel number
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
ChrisR
on 11 Nov 2023
In Firefox and Bing, the TeX writing is displaced below the rest of the line. Does anyone have a fix?
Christian Schröder
on 12 Nov 2023
@Chris I'm seeing that too (using Chrome). I guess it's a server-side problem.
Solution Comments
Show commentsProblem Recent Solvers4
Suggested Problems
-
Find state names that end with the letter A
1171 Solvers
-
Given two arrays, find the maximum overlap
1453 Solvers
-
Basic electricity in a dry situation
553 Solvers
-
Mandelbrot Number Test [Real+Imaginary]
23 Solvers
-
Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
216 Solvers
More from this Author269
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!