Skip to content

A sequence of q integers b1, b2, ..., bq (1 ≤ b1 ≤ b2 ≤ ... ≤ bq ≤ a) is called good if each number divides without succession the next number in the sequence. More formally, bi | bi + 1 for all i (1 ≤ i ≤ q - 1). You are given a and b, find the number of good sequences of length b. Since the answer may be quite large, output it 1000000007 (109 …

Notifications You must be signed in to change notification settings

ThreePhaseCurrent/Dynamic-programming-task-good-sequences

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic-programming-task-good-sequences

A sequence of q integers b1, b2, ..., bq (1 ≤ b1 ≤ b2 ≤ ... ≤ bq ≤ a) is called good if each number divides without succession the next number in the sequence. More formally, bi | bi + 1 for all i (1 ≤ i ≤ q - 1). You are given a and b, find the number of good sequences of length b. Since the answer may be quite large, output it 1000000007 (109 + 7).

About

A sequence of q integers b1, b2, ..., bq (1 ≤ b1 ≤ b2 ≤ ... ≤ bq ≤ a) is called good if each number divides without succession the next number in the sequence. More formally, bi | bi + 1 for all i (1 ≤ i ≤ q - 1). You are given a and b, find the number of good sequences of length b. Since the answer may be quite large, output it 1000000007 (109 …

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages