← All problemsSign in

Luv Kush and FX Sequence

Luv & Kush were very intelligent twin children of Lord Rama and Sita Mata. One day, Luv interestingly formed a sequence, named $FX$ ($FibXor$) $Sequence$. He was curious to find the $n$$th$ term of the sequence. So, instead of finding it himself and to test the intelligence of his brother, Kush, he asked Kush to find the $n$$th$ term. But, since Kush is busy learning "Dhanur Vidhya", so, you have

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