Help Satya !!
CodeChefOpen on judge ↗
Satyanand's Love for Mathematics is not hidden to anyone. Recently, he studied sequences and feels that he has studied it completely. Shreyansh, a dear friend of Satyanand gives him a sequence. The sequence is as follows: $1, 6, 15, 28, 45, 66, 91, ...$ Also, Shreyansh gives him an integer k and asks him to find the kth element of the sequence. Satyanand is busy doing Compilers lab. Help
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