The numbers ⌊a⌋,⌊2a⌋,…,⌊Na⌋ are all different, and the numbers ⌊1/a⌋,⌊2/a⌋,…,⌊M/a⌋ are also all different. Find all such a.