write a java program
3 6 11 18.......n terms
Answers
Answered by
1
Explanation:
Input: N = 5
Output: 45
Explanation:
For N = 5,
Nth term = ( N * ( (N/2) + ( (N%2) * 2) + N )
= ( 5 * ( (5/2) + ( (5%2) * 2) + 5 )
= ( 5 * ( 2 + ( 1 * 2) + 5 )
= 45
Input : 6
Output : 54
please mark me as brainliest.
Answered by
1
Answer:
Input: N = 2
Output: 9
The sum of first 2 terms of Series is
3 + 6 = 9
Input: N = 3
Output: 20
The sum of first 3 terms of Series is
3 + 6 + 11 = 20
Explanation:
Hey Mate Here Is Your Answer
Similar questions