Find the sum of all the positive integers which cannot be represented by the sum of 2's and 5's
Details:- 2's and 5's can be used multiple times
Example:- 4=2+2, 16=5+5+2+2+2
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.
All the even numbers can be represented as 2 + 2 + 2 . . . . . . .
All the odd numbers greater than 5 can be represented as ( 2 k + 5 ) where k ∈ W , which implies that all the odd numbers greater than 5 will be 5 + 2 + 2 + 2 . . . .
The odd numbers below 5 are 1 and 3.
Thus, the only numbers which cannot be represented by the sum of 2's and 5's are 1 and 3.
1 + 3 = 4