- #1
Aman Gaur
- 6
- 0
can anyone help in solving this program...
write a program to create the series as 0 ,3 ,8 ,15 ,24 ,35...till n terms
write a program to create the series as 0 ,3 ,8 ,15 ,24 ,35...till n terms
seq(n)=print1(0);for(k=1,n-1,print1(" ,"if(k%6,[3,8,15,24,35][k%6],0)))
0 ,3 ,8 ,15 ,24 ,35 ,0 ,3 ,8 ,15 ,24 ,35 ,0 ,3 ,8 ,15 ,24 ,35 ,0 ,3
Aman Gaur said:i understood the pattern as the difference between the series is like series of odd numbers
Aman Gaur said:thank you sir...i got it ...as you said it...
thank you very much...
i need you help in another one like that...it says
write a program to print the following series as
55555
54444
54333
54322
54321
The pattern in this series is to add 3 to the previous number, then add 1 to the result. This creates the sequence of numbers 0, 3, 8, 15, 24, 35...
The formula for finding the next number in the series is n^2 + 1, where n is the position of the number in the series. For example, the first number in the series is at position 0, so the formula would be 0^2 + 1 = 1. The second number is at position 1, so the formula would be 1^2 + 1 = 2. This continues for each subsequent number in the series.
There is no limit to the number of terms in this series, as it can continue infinitely. However, for practical purposes, the number of terms can be determined by the position of the desired number in the series. For example, to find the 10th number in the series, the formula would be 10^2 + 1 = 101, indicating that there are at least 10 terms.
Yes, this series can also be written as 0, 1, 4, 9, 16, 25... by using the formula n^2, where n is the position of the number in the series. However, the original series of 0, 3, 8, 15, 24, 35... follows a different pattern and may be more useful in certain contexts.
This series is often used in mathematics and computer science for various calculations and algorithms. It is also used in physics to describe the motion of an object with constant acceleration. Additionally, this series can be found in various natural phenomena, such as the petals of a flower arranged in a spiral pattern.