I Thought This Could Continue Forever - Part 1

A longevity chain is a sequence of consecutive positive integers, whose digit sums are never a multiple of 9. What is the longest possible length of a longevity chain?

For similar problems, you can read my note on Construction .

8 Infinite 18 9

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

8 solutions

A multiple of 9 occurs after every eight consecutive numbers. Hence our required answer is 8.

didn't understand the question well!!

Sunetra Ganguly - 7 years, 2 months ago

Log in to reply

See my reply to Narisa Thamveerapong's comment. I explained it there... :)

Prasun Biswas - 7 years, 2 months ago

I thought that it asked when will it not have a multiple of nine. So if you go two after eight, the sum will not be a multiple of nine. question was not worded will

Kaustubh Khulbe - 2 years, 11 months ago

I really don't understand the question.

Narisa Thamveerapong - 7 years, 2 months ago

Log in to reply

Actually, the chain is not restricted to start from 1 1 . The chain can start with any positive integer and must consist of consecutive positive integers starting from the first integer of the chain but when the chain reaches before a multiple of 9 9 , it terminates as the chain cannot have multiples of 9 9 . Now, since multiples of 9 9 come after every 8 8 integers , so the chain can have at maximum all those 8 8 integers in that range which are not multiples of 9 9 . So, the chain can have maximum possible length = 8 =\boxed{8}

Prasun Biswas - 7 years, 2 months ago

Log in to reply

Even I said the same thing! Isn't it?

Aditya Prakash - 7 years, 2 months ago

Log in to reply

@Aditya Prakash No, the mistake you made was considering that the chain starts from 1 1 . The chain can start from any positive integer (like 3 , 11 3,11 , etc.). But for max. length of the chain we can see that since after every 8 8 integers, we get a multiple of 9 9 , so the max length can be made by taking all those 8 8 consecutive non-multiples in the chain, so max length = 8 =8 .

The chain can also be like this ----->

( 10 , 11 , 12 , . . . . , 17 ) (10,11,12,....,17) or ( 20 , 21 , 22 , . . . . . , 28 ) (20,21,22,.....,28) , etc.

Prasun Biswas - 7 years, 2 months ago

Log in to reply

@Prasun Biswas Cool!

Aditya Prakash - 7 years, 2 months ago

You have to count the number of positive integers till the first integer which is divisible by 9 comes! i.e(1,2,3,4,5,6,7,8) total count=8. :)

Aditya Prakash - 7 years, 2 months ago

Log in to reply

That is actually not correct because the sum of {1,2...7,8} is 36 which is divisible by 9

Maarten van Helden - 3 years ago

Log in to reply

@Maarten van Helden The sum being referred to is not the sum of the elements of the sequence, but rather the digit sum of each number in the sequence.

Prasun Biswas - 1 year, 4 months ago

i THOUGHT THE CHAIN WOULD CONTINUE WITH SUCH SEQUENCES

Nilesh Phalke - 7 years, 2 months ago

positive integers do include zero '0' so the answer must be 9! isint it!?

Aditya Prakash - 7 years, 2 months ago

Log in to reply

Actually it is said that multiples of 9 9 cannot be in the chain. So, if you have the chain from the first positive integer which is 1 1 , then the chain goes like this --->

1 , 2 , 3 , . . . . , 8 1,2,3,....,8 .

9 9 will not be in the chain as 9 9 is a multiple of 9 9 . So, if you count you have 8 8 integers in the chain not 9 9 . So, the answer should be 8 8 . By the way, the chain is not restricted to start from 1 1 . It can start from any positive integer but the max length possible for the chain is 8 8 .

Prasun Biswas - 7 years, 2 months ago

Log in to reply

Oh cool! by the way i know that 9 cannot be in the chain! but by mistake i counted 0 also in the chain and later on realized that even 0 can be a multiple of 9! :)

Aditya Prakash - 7 years, 2 months ago

Log in to reply

@Aditya Prakash Yes, you can say that but we also have yet another reason to not take 0 0 in the chain. The reason is that 0 0 is neither a positive nor a negative integer and it is said that the chain contains consecutive positive integers . However, your reason is also partly correct... :)

Prasun Biswas - 7 years, 2 months ago

but 0 is also a positive integer..

namita dudeja - 7 years, 2 months ago

Log in to reply

You're right! But it is considered as as one of the multiple of 9! So answer is 8!

Aditya Prakash - 7 years, 2 months ago

No, actually not. 0 0 is an integer but it cannot be stated as either positive or negative as + 0 +0 and 0 -0 both point to the same thing,i.e, 0 0 .

Prasun Biswas - 7 years, 2 months ago

The question is badly posed. Better would be find the longest chain of consecutive integers each of which is not divisible by 9. Then anyone can solve it and the answer is 8.

Rao Nagisetty - 4 years, 5 months ago

12345678 is a number formed by consecutive positive integers and it is of length 8. but its digit sum which is 36 is a multiple of 9. Then how can the ans be 8?

Shubham Poddar - 4 years, 2 months ago

Log in to reply

That is also my problem with the question

Maarten van Helden - 3 years ago

I don't understand what is being asked. If I write 11,111,111 the digit sum is 8. If I write 111,111,112 the length is 9, the digit sum is 10.

Harold Ship - 3 years, 10 months ago

Log in to reply

Consecutive means following each other continuously, so 1,1,1,1 is not allowed. It has to be 1,2,3,4 or 25,26,27, 28,29 etc

Maarten van Helden - 3 years ago

This is actually not completely unambiguous. For this to be true you have start with 0, which is a multiple of 9. I am inclined to stop there en conclude you cannot start with 0 or 9 or 18 for that matter. If you can ignore the first multiple of 9, why not the 2nd 3rd or nth. Than the length can be infinite. So that was my choice. If that is not the right answer then we should exclude the first multiple of 9. Then we should start at the digit after the multiple of 9 and then the answer is 7.

Maarten van Helden - 3 years ago

I read this as meaning that each of the digits added together could not be divided by 9. so from 2 to 9, added together is not divisible by 9, but I do not know how to continue without trial and error.

Norm Worthy - 2 years, 10 months ago

but cant it be 0,1,2,3,4,5,6,7,8 after that 9 whose digit sum is multiple of 9 so shouldnt it be 9 integers

Sarvagya Agrawal - 10 months, 1 week ago

The question said that digit sums are never a multiple of 9, but what about -8 to 8. There are 17 integers.

Saqib M - 7 years, 3 months ago

Log in to reply

0 0 is a multiple of 9 9 but moreover it is said in the question that the sequence should contain positive consecutive integers, so any negative values ( ( 8 ) , ( 7 ) , . . . . ) ((-8),(-7),....) cannot be in the chain.

Prasun Biswas - 7 years, 3 months ago

Log in to reply

what about 91 to 107???

Diptesh Sil - 7 years, 2 months ago

Log in to reply

@Diptesh Sil I believe that 99 99 is also a multiple of 9 9 , don't you think so ?? :D

Prasun Biswas - 7 years, 2 months ago

0 is a multiple of 9, for your kind information.

Edit: so the answer remains unchanged even if all INTEGERS are concerned.

Shourya Pandey - 7 years, 3 months ago

but you cannot take negetive integers .

Rik Ghosh - 7 years, 3 months ago

It says positive integer

Priyesh Pandey - 7 years, 2 months ago

The condition is the digit sum of positive integers, so a multiple of 9 must occur after every eight POSITIVE integers, so you can't count it from -8

Ashwin Hebbar - 7 years, 2 months ago
Prasun Biswas
Feb 27, 2014

We can see that digit sum of any 1 1 -digit number n n is the digit itself and starting from 1 1 till 8 8 , none of them have digit sum as multiple of 9 9 since 9 9 's first multiple is 9 9 itself. So, the chain can have the max. length of 8 8 --- from 1 1 to 8 8 .

So, the chain has max. length = 8 =\boxed{8}

Edit: An integer n n has a digit sum divisible by 9 iff n n itself is divisible by 9, so the problem is equivalent to asking "what is the maximum number of consecutive integers not divisible by 9?" which is obviously 8 (the numbers between any two consecutive multiples of 9, ie, the nontrivial residue classes modulo 9).

The chain does not need to start from 1. It could start from 100.

Calvin Lin Staff - 7 years, 3 months ago

Log in to reply

Hmmm....that's why I couldn't solve the Part - II of this question. Thanks for the information. :)

Prasun Biswas - 7 years, 3 months ago
Daniel Lombardo
Apr 3, 2014

The sum of m consecutive numbers can be represented as follows: n + (n +1) + (n +2) .... (n + (m-1)) = mn + (1 +2 +3 + .. . + (m-1)). Let's start with the smallest number that is 8, where m = 8 and n = any number is n + (n +1) + (n +2) ... (n + (8-1)) = 8n + (1 +2 +3 + ... + (8-1)) = 8n +28 -> the sum of 8 consecutive integers is not divisible by 9, since 9 must divide the coefficient and the sum. So the result is greater than or equal to 8. Now with the next, which is the sum of 9 consecutive integers, m = 9 n = any number, n + (n +1) + (n +2) + ... + (n + (9-1) = 9n +36 9 divides the coefficient and the sum, so the answer is 8.

If the digits add to a multiple of nine, the number is a multiple of nine. There can be 8 digits between multiples of 9.

Sattik Biswas
Mar 30, 2016

I think we can also use A.P to solve this problem.

How can we use AP ?

Raj Sutariya - 7 months, 3 weeks ago

Hallo,so easy,

As digit sums ,1+2+3+4+5+6+7=28(not a multiple of 9),

once, digit sums , 28+8 = 36(visible by 9)

therefore,it is started divisible by 9 at 1,2,3,4,5,6,7,8,.....

thanks....

but 23456789 is not divisible by 9, nor 234567890, But doing this by trial and error does not seem right

Norm Worthy - 2 years, 10 months ago
Varun Agrawal
Mar 24, 2014

THE SUM WILL BE x+x+1+x+2+x+3 AND SO ON. THIS EQUALS N(X+Y) WHERE N IS THE NO. OF NUMBERS ADDED, AND Y IS SUM OF CONSTANTS IN ADDITION DIVIDED BY N. HERE THE LEAST VALUE FOR N SUCH THAT THE SUM IS DIVISIBLE BY 9 IS 9. THAT IMPLIES THERE ARE N NO.S IN THE ADDITION. SO THE MAXIMUM NO. OF CONSECUTIVE POSITIVE NO.S WHOSE SUM IS NOT DIVISIBLE BY 9 IS 9-1=8.

Amith Pottekkad
Mar 22, 2014

A multiple of 9 comes after 8, i.e 9*1=9,,,so the answer is=8

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...