Find the remainder when f(100) is divided by by 100

  • MHB
  • Thread starter anemone
  • Start date
  • Tags
    Remainder
In summary, the conversation discusses a triangular array of numbers obtained by adding two adjacent numbers in the previous row. The sum of the numbers in a given row is denoted by f(n). The question is asked about the remainder when f(100) is divided by 100. The solution is found by observation and using the Chinese Remainder Theorem, and the final answer is 74.
  • #1
anemone
Gold Member
MHB
POTW Director
3,883
115
Consider the triangular array of numbers \(\displaystyle 0,\;1,\;2,\;3,\cdots\) along the sides and interior numbers obtained by adding the two adjacent numbers in the previoius row. Row 1 through row 6 are shown as below.

0
11
222
3443
47874
5111515115

Let \(\displaystyle f(n)\) denote the sum of the numbers in row \(\displaystyle n\). What is the remainder when \(\displaystyle f(100)\) is divided by \(\displaystyle 100\)?
 
Mathematics news on Phys.org
  • #2
anemone said:
Consider the triangular array of numbers \(\displaystyle 0,\;1,\;2,\;3,\cdots\) along the sides and interior numbers obtained by adding the two adjacent numbers in the previoius row. Row 1 through row 6 are shown as below.

1
1
2
2
2
3
4
4
3
4
7
8
7
4
5
11
15
15
11
5

Let \(\displaystyle f(n)\) denote the sum of the numbers in row \(\displaystyle n\). What is the remainder when \(\displaystyle f(100)\) is divided by \(\displaystyle 100\)?

The sequence $f_{n}$ is solution of the difference equation... $$f_{n+1} = f_{n} + 2^{n+1},\ f_{0}=0\ (1)$$

... and the solution of (1) is... $$f_{n} = \sum_{k=1}^{n} 2^{k} = 2\ (2^{n}-1)\ (2)$$

From (2) using 'Monster Wolfram' we derive...

$$2\ (2^{100}-1)\ \text{mod}\ 100 = 50\ (3)$$ ... but probably a more clever way to arrive to (3) exists... Kind regards $\chi$ $\sigma$
 
  • #3
I found by observation that:

\(\displaystyle f(n)=2\left(2^{n-1}-1 \right)\)

and hence (also using W|A):

\(\displaystyle 74\equiv f(n)\,\,\,\,(\text{mod }100)\)
 
Last edited:
  • #4
By observation I got $f(n) = 2^n - 2$, hence $f(100) = 2^{100} - 2$.

Now $2^5 \equiv 32 \pmod{100}$, so $2^{10} \equiv 32^2 \equiv 24 \pmod{100}$, then $2^{50} \equiv 24^5 \equiv 24 \pmod{100}$ and we conclude that $2^{100} \equiv 24^2 \equiv 76 \pmod{100}$.

Therefore $f(100) \equiv 76 - 2 \equiv 74 \pmod{100}$.
 
  • #5
Of course it is a trivial problem of indexes but it is...

$$f_{0} = 2\ (2^{0}-1) = 0$$

$$f_{1} = 2\ (2^{1}-1) = 2$$

$$f_{2} = 2\ (2^{2}-1) = 6$$

$$f_{3} = 2\ (2^{3}-1) = 14$$

... so that in general is...

$$f_{n} = 2\ (2^{n}-1)$$

Kind regards$\chi$ $\sigma$
 
  • #6
chisigma said:
Of course it is a trivial problem of indexes but it is...

$$f_{0} = 2\ (2^{0}-1) = 0$$

$$f_{1} = 2\ (2^{1}-1) = 2$$

$$f_{2} = 2\ (2^{2}-1) = 6$$

$$f_{3} = 2\ (2^{3}-1) = 14$$

... so that in general is...

$$f_{n} = 2\ (2^{n}-1)$$

Kind regards$\chi$ $\sigma$

Hi chisigma,

According to the general formula that you derived in the above manner, I believe f(100) is obtained when \(\displaystyle n=99\)
.
 
  • #7
Bacterius said:
By observation I got $f(n) = 2^n - 2$, hence $f(100) = 2^{100} - 2$.

Now $2^5 \equiv 32 \pmod{100}$, so $2^{10} \equiv 32^2 \equiv 24 \pmod{100}$, then $2^{50} \equiv 24^5 \equiv 24 \pmod{100}$ and we conclude that $2^{100} \equiv 24^2 \equiv 76 \pmod{100}$.

Therefore $f(100) \equiv 76 - 2 \equiv 74 \pmod{100}$.

Since I like the Chinese Remainder Theorem (CRT). (Inlove)CRT says that the map $\psi: \mathbb Z/100\mathbb Z \to \mathbb Z/4\mathbb Z \times \mathbb Z/25\mathbb Z$ given by $\psi: x \text{ mod }{100} \mapsto (x \text{ mod }4, x \text{ mod }{25})$ is an isomorphism.

Since $\phi(25)=20$, we know from Euler's Theorem that $2^{20} \equiv 1 \pmod{25}$.
So $\psi(2^{100} - 2) \equiv (2^{100} - 2 \text{ mod }{4}, 2^{100} - 2 \text{ mod }{25}) \equiv (- 2 \text{ mod }{4}, 1^5 - 2 \text{ mod }{25}) \equiv (-2 \text{ mod }{4}, -1 \text{ mod }{25})$.

From the second argument, it follows that $2^{100} - 2$ is equivalent to one of $24, 49, 74, 99 \pmod{100}$.
Only $74$ fits with the first argument.

So $f(100) \equiv 2^{100} - 2 \equiv 74\pmod{100}. \qquad \blacksquare$
 

Related to Find the remainder when f(100) is divided by by 100

1. How do you find the remainder when f(100) is divided by 100?

To find the remainder when f(100) is divided by 100, you first need to determine the value of f(100). Once you have that value, you can divide it by 100 using long division or a calculator. The remainder will be the number left over after the division is complete.

2. Why do we need to find the remainder when f(100) is divided by 100?

Finding the remainder when f(100) is divided by 100 is important because it allows us to understand the relationship between f(100) and 100. It can also help us solve more complex mathematical problems that involve finding the remainder.

3. Can finding the remainder when f(100) is divided by 100 help us solve other mathematical problems?

Yes, finding the remainder when f(100) is divided by 100 can be useful in solving other mathematical problems, such as finding the last digit of a large number or determining if a number is divisible by another number.

4. Is finding the remainder when f(100) is divided by 100 the same as finding the modulo of f(100) and 100?

Yes, finding the remainder when f(100) is divided by 100 is the same as finding the modulo of f(100) and 100. The remainder and the modulo are both the value left over after dividing the number by another number.

5. Can we use a calculator to find the remainder when f(100) is divided by 100?

Yes, you can use a calculator to find the remainder when f(100) is divided by 100. Most calculators have a built-in function for finding the remainder or modulo. You can also use a scientific calculator to perform long division to find the remainder.

Similar threads

  • General Math
Replies
1
Views
779
Replies
11
Views
594
Replies
5
Views
2K
  • Precalculus Mathematics Homework Help
Replies
7
Views
1K
  • General Math
Replies
1
Views
2K
  • General Math
Replies
2
Views
2K
  • General Math
Replies
6
Views
1K
  • General Math
Replies
4
Views
2K
Back
Top