Hi All,
I am trying to create a function in Mathematica that replicates the following series of numbers.
data = {1, 7, 21, 43, 73, 111, 157, 211, 273, 343, 421, 507, 601, 703, 813}
Length[data] = 15
So I would have a functionData[[15]] = 813
From this functionData[x] I would be able to find any value within this series along the positive integer domain from 1 to infinity.
functionData[ integer domain from 1 to infinity ]
I can replicate this series by creating columns lists within Microsoft Excel spreadsheet & adding corresponding elements in rows to create this series. But I have been having problems doing something similar in Mathematica. My initial approach shown below. This is unfinished & maybe the wrong approach.
In[5]:= plus7 = Table[i*7, {i, 2, 10}]
Out[5]= {14, 21, 28, 35, 42, 49, 56, 63, 70}
In[7]:= PadLeft[plus7, 11]
Out[7]= {0, 0, 14, 21, 28, 35, 42, 49, 56, 63, 70}
In[8]:= PadRight[{1, 7}, 11]
Out[8]= {1, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0}
In[9]:= PadRight[{1, 7}, 11] + PadLeft[plus7, 11]
Out[9]= {1, 7, 14, 21, 28, 35, 42, 49, 56, 63, 70}
I would be very grateful for your advice & assistance. Many thanks for your help & attention.
Best regards, Lea...