There is no three consecutive integers with same

Max Williams

Max Williams

Answered question

2022-04-11

There is no three consecutive integers with same Parity of sum of its digits
Let D(a) denotes sum of digits of a in decimal. Examples D(49)=4+9=13
Let P(a) denotes parity of a. Example P(2)=0 as even and P(3)=1 as odd.
Questions: show that there is no a such that
P(D(a))=P(D(a+1))=P(D(a+2)).

Answer & Explanation

strasnihwhge

strasnihwhge

Beginner2022-04-12Added 14 answers

Step 1
We will divide the numbers into two cases- Those ending with 9 and those which are not.
Let, us select a number of the form (ending with 9)
k9
where kN. Clearly, the next number is of the form
(k+1)0
Now, k be either odd or even. Note, D(k9)=k+9 is of the opposite parity of k (Why?). And for the second number, D((k+1)0)=k+1+0=k+1 which is of opposite parity of k. So, if a number ends with 9, the number and its successive number are of same parity (0, 0) or (1, 1)
Now, select a number of the form (not ending with 9)
kn
where, kN and n{1,2,,8}. The next number is of the form
k(n+1)
Clearly, D(kn)=k+n and D(k(n+1))=k+n+1
which are of opposite parity.
Now, see if the result you want follows.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?