Not able to count

i am finding it difficult to count the no of ways of selecting nos that are divisible from 1 to 9 could you plz give me some hint

hello @Shobhit_kumar

first try to come up with recusive solution.

hint-> something like knapsack
either u can pick current element or u can discard

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.