-
Notifications
You must be signed in to change notification settings - Fork 8
/
sequence.py
25 lines (19 loc) · 811 Bytes
/
sequence.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# ======================================CUBES===============================================================
# pattern of cubes
for i in range(1,11):
print(i**3,end=" ")
print("\n")
# =======================================add by 3===========================================================
# a unique series of AP with common diff 3
for a in range(-5,23,3):
print(a,end=" ")
print("\n")
# =======================================add by 2===========================================================
# a unique series of AP with common diff 2
for b in range(-2,-21,-2):
print(b,end=" ")
print("\n")
#========================================add by 3(positives)================================================
# a unique series of AP with common diff 3
for c in range(1,32,3):
print(c,end=" ")