Iccanobif numbers 1 - MATLAB Cody - MATLAB Central

Problem 44836. Iccanobif numbers 1

Difficulty:Rate

There are a lot of problems in Cody that deal with Fibonacci numbers (1, 1, 2, 3, 5, 8, 13, 21 etc...) so let's turn things around a bit. Literally. This problem deals with the Iccanobif sequence. Instead of adding the previous two numbers in the sequence, reverse the digits of the previous two numbers and add those together to get the next number in the sequence.

It starts out exactly the same as the Fibonacci (1, 1, 2, 3, 5, 8, 13) as all of the one digit numbers equal themselves when reversed. However, instead of 8+13=21 for the next term, reverse the digits in 13 to get 31. The next term is now 8+31, or 39. The next term after that is 31+93 (13 and 39 reversed) to get 124, and so on. Unlike the starndard Fibonacci sequence, the Iccanobif sequence can actually decrease in value between terms.

You will be given a number, and you will be asked to calculate that term in the Iccanobif sequence.

!Kcul doog

Solution Stats

56.41% Correct | 43.59% Incorrect
Last Solution submitted on Dec 12, 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

Group

MATLAB Onramp Practice Image
MATLAB Onramp Practice
  • 15 Problems
  • 4632 Finishers

Problem Recent Solvers61

Problem Tags

Community Treasure Hunt

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

Start Hunting!