What pattern can it be
CodeChefOpen on judge ↗
Identify the logic behind the series $6,20,47,87,140, \dot, \text{so on}$ and print a pattern using these numbers as described below. The number of rows in the pattern is specified by the input $N$ EXAMPLE: If N=2 then the pattern will be: 00006 00020 00047 If N=3 the pattern will be: 00006 00020 00047 00087 00140 00206 ###Input: First line will take
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