T.T.T.#6: nth user
A product to do market research, n users to participate in the activities. They give each user a number. The first user number is 1, second users numbered 2, and so on... But no digits 4 and 9 in user's numbers, that is to say the number of 3rd users is 3, the number of 4th users is 5...the number of 8th users is 10... like this:
Please calculate, how much is the number of the nth user?
A product to do market research, n users to participate in the activities. They give each user a number. The first user number is 1, second users numbered 2, and so on... But no digits 4 and 9 in user's numbers, that is to say the number of 3rd users is 3, the number of 4th users is 5...the number of 8th users is 10... like this:
1 | user 1st 2nd 3rd 4th 5th 6th 7th 8th 9th 10th ........ nth |
简言之,从 \(1\) 开始,将不含 \(4\) 和 \(9\) 的正整数依次写下来,求第 \(n\) 个数。