KhanhNguyen07's blog

By KhanhNguyen07, history, 2 months ago, In English

Given a prime number k, find the smallest positive integer m such that k * m creates a number with same digits. Output the answer modulo 10e9 + 7. Example: k = 13 => m = 8547 (13 * 8547 = 111111).

Thanks for your help.

  • Vote: I like it
  • 0
  • Vote: I do not like it