Rosetta Problems

The J-th Number

https://onlinejudge.u-aizu.ac.jp/problems/2563