Determine whether a number is a Zeisel number - MATLAB Cody - MATLAB Central

Problem 59170. Determine whether a number is a Zeisel number

Difficulty:Rate
Do you know what is interesting about the number 1729?
That’s right: it’s the third Zeisel number, a number given by p0*p1*p2*...*pn, where p0 = 1 and pk are the distinct prime factors, related by the recurrence relation pk = Ap(k-1)+b. For example, A and B are 1 and 6 for 1729 since 1+6 = 7, 7+6 = 13, 13+6 = 19, and 1*7*13*19 = 1729.
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

50.0% Correct | 50.0% Incorrect
Last Solution submitted on Dec 20, 2024

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Problem Recent Solvers7

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!