A positive integer is said to be trams if it is divisible by the number formed by its first two digits.
For example, 100 is trams as .
Find the sum of the first 5 trams numbers, which have the first two digits equal to 17.
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.
We can rewrite this as
f ( n ) = 1 7 ⋅ 1 0 n + x
for some integer x . Since 1 7 ∣ ( 1 7 ⋅ 1 0 n + x ) and 1 7 ∣ 1 7 ⋅ 1 0 n , it implies that 1 7 ∣ x . Additionally since the first 2 digits need to be 17, x needs to be smaller than 1 0 n − 2 .
Since we want the tram numbers as small as possible, we try to keep the value of n as small as possible. After that, we test different small values of x based on above restrictions to find out tram numbers.
For n = 0 , we have f ( n ) = 1 7 + x . Only possible value of x satisfying the restrictions is 0.
For n = 1 , we have f ( n ) = 1 7 0 + x . Again only possible value of x satisfying the restrictions is 0.
For n = 2 , we have f ( n ) = 1 7 0 0 + x . Now x can take the values of 0, 17 and 34.
So the smallest 5 tram numbers are 17, 170, 1700, 1717 and 1734. Sum of them is 5338.