Nth Number in the series
All submissions for this problem are available.
JNTU College is conducting an Warmup contest for students to bring out their approaches of solving a problem. A Challenged B that he could not solve the problem.So help B in solving the problem.
Given a series of numbers with only 3 and 4.Your task is very simple i.e.. find the nth number in the series. First few numbers in the number system are: 3, 4, 33, 34, 43, 44, 333, 334, 343, 344, 433, 434, 443, 444, 3333, 3334, 3343, 3344……..
Input contains only a single integer N.
Print the Nth number in the series
Should contain all the constraints on the input data that you may have. Format it like:
- 1 ≤ N ≤ 100
Input: 5 Output: 43
If N=5 then the 5th number in the series will be 43.
Hence you need to print the output as 43 ...
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, SCALA, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, PERL6, TEXT, SCM chicken, CLOJ, FS|
Fetching successful submissions