← All problemsSign in

Sonamutha Pocha

Problem description. Sonamutha was dealing with an interesting sequence of numbers. Lets call it, "cool sequence". The first number of cool sequence is 2. The second number of cool sequence is 7. The other numbers of "cool sequence" are calculated as follows: If i is odd, Ci = 3*Ci-2 + Ci-1 If i is even, Ci = 7 + Ci-1 Now Sonamutha came up with a problem. Given a number N, if N can be formed

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start