Rosetta Problems

奇怪的数

https://www.acwing.com/problem/content/5394