Does parity of f(a) and \(\displaystyle{f{{\left({a}+{1}\right)}}}\) are

Addison Fuller

Addison Fuller

Answered question

2022-04-03

Does parity of f(a) and f(a+1) are same whenever a is even? Question related to sum of digits.

Answer & Explanation

sa3b4or9i9

sa3b4or9i9

Beginner2022-04-04Added 14 answers

Step 1
Assume a is even. That means we already know the parity with i=2j+1 odd: D(a,2j+1)=2kj (even) and j=1,,a21
Now take a look for i=2j even: We don't know the concrete value of D(a,2j), but we can draw a connection between D(a,2j) and D(a+1,2j). As a is even the last digit in any even-numbered system must be even as well (otherwise we will get a contradiction mod 2)! This means the last digit can never be i1 so if we add 1 we will only increase the last digit to a value i1 and no overflow to the next digit is generated. So all digits besides the last one stay untouched.
That means we get D(a+1,2j)=D(a,2j)+1
Summing all information up we can conclude:
f(a)=j=1a2D(a,2j)+j=1a21D(a,2j+1)
f(a+1)=j=1a2D(a+1,2j)+j=1a21D(a+1,2j+1)+D(a+1,a+1)
=j=1a2D(a,2j)+a21+j=1a21D(a+1,2j+1)+1
Considering everything mod 2 we can use that
D(a+1,2j+1)D(a,2j+1)+1
f(a+1)j=1a2D(a,2j)+a21+j=1a21D(a,2j+1)+(a21)1+1
f(a)+a2+a21+1=f(a)+af(a)mod2
Here we have it that
f(a)f(a+1)mod2
if a is even.

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?