wish_me's blog

By wish_me, history, 7 years ago, In English

http://codeforces.net/problemset/problem/414/B

Can anyone help me in understand the problem.Just need explaination.Thanks in advance

  • Vote: I like it
  • +1
  • Vote: I do not like it

»
7 years ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

A sequence is called good if all the numbers are divided by its previous number(excluding the first number ofcourse). So a sequence like — 1,4,12,36 is called good but 1,4,8,14 is not good.

Now you will be given n (the maximum number you can use in the sequence) and k (length of sequence). You have to tell how many sequences can be made out of these restrictions.

Solution Hint