10 digits

A 10-digit positive integer a b c d e f g h i j \overline{abcdefghij} is beautiful, if the product of its digits ends in 1, that is a b c d e f g h i j = 1 abcdefghij=\dots1 .

How many beautiful numbers are there?


The answer is 262144.

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.

1 solution

Fahim Saikat
Jul 16, 2017

Note that, if the last digit of the product of two number is 1 the pair of digit must be ( 1 , 1 ) , ( 3 , 7 ) \large(1,1),(3,7) or ( 9 , 9 ) \large(9,9)

For a 10 -digit number , we have 4 option , { 1 , 3 , 7 , 9 } \{1,3,7,9\} for the 1 s t 1_{st} 9 place.

If the 10-digit positive integer is a b c d e f g h i j \overline{abcdefghij} then ,we have 4 option for each of these digit - a , b , c , d , e , f , g , h , i a,b,c,d,e,f,g,h,i , but we have to put a fix number for j j . So, there are 4 × 4 × 4 × 4 × 4 × 4 × 4 × 4 × = 4 9 = 262144 4\times4\times4\times4\times4\times4\times4\times4\times=4^9=\boxed{262144} such a beautiful number.

Bonus: There are 4 n 1 4^{n-1} , n -digit beautiful number.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...