A combinatorics problem by Naitik sanghavi...-2

Find the number of two digit numbers divisible by the product of its digits.


The answer is 5.

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.

2 solutions

Naitik Sanghavi
Jul 27, 2015

there are 5 such two digit numbers 11 12 15 24 36

I don't really think this is a combinatorics problem; more like number theory.

Krishna Karthik - 1 year, 2 months ago
Krishna Karthik
Apr 4, 2020
1
2
3
4
5
6
7
8
the_list = []
for i in range(10,100):
  a = list(str(i))
  if int(a[1]) != 0:
    if i%(int(a[0])*int(a[1]))==0:
      the_list.append(i)

print(the_list)

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...