First Date
CodeChefOpen on judge ↗
A girl has challenged Shubham that if he can solve the sequence she will go on a date with him. Help Shubham so that he can go on his first date else like every other year this year also he would have to spend Valentine’s Day alone. He has to find N'th term of this sequence. 2, 4, 11, 36, 147, 778 ... ... ... ... Nth term. Input Only one natural number N. Output One natural number. N'th term
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start