All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Add-largest-digit sequence (Posted on 2024-06-15) Difficulty: 3 of 5
An add-largest-digit sequence in base 10 is defined for some n by the recursive rule

a1=n,
at=at-1+[the largest digit of at-1] for t>1

For example, if n=165 the sequence begins 165, 171, 178, 186, 194, 203, 206, 212, 214, ...

What is the greatest number of successive odd terms that can be found in an add-largest-digit sequence?

No Solution Yet Submitted by Jer    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Solution Comment 1 of 1
If a term ends in 9 then the next term will end in 8, breaking the streak of odd value terms.
If a term ends in 1 then in at most two terms we will have an even value.
Finally, for a sequence of odd terms they will all have the same difference between terms.  Since there are five odd digits then the longest string of odd value terms is five terms.
Example: 798 -> 807 -> 815 -> 823 -> 831 -> 839 -> 848

  Posted by Brian Smith on 2024-06-16 00:04:26
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (4)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information