登录
122089年
a(1)=a(2)=1。a(n)=大于a(n-1)且与(a(n-1)+a(n-2))互素的最小整数。
1
1, 1, 3, 5, 7, 11, 13, 17, 19, 23, 25, 29, 31, 37, 39, 41, 43, 47, 49, 53, 55, 59, 61, 67, 69, 71, 73, 77, 79, 83, 85, 89, 91, 97, 99, 101, 103, 107, 109, 113, 115, 119, 121, 127, 129, 131, 133, 137, 139, 143, 145, 149, 151, 157, 159, 161, 163, 167, 169, 173, 175, 179
抵消
1,3
例子
a(9)+a(10)=42。大于a(10)=23的最小整数与42互素为25。因此a(11)=25。
MAPLE公司
A122089号:=proc(maxn)本地a,nexta,n;a:=[1,1];对于从3到maxn的n,执行nexta:=op(n-1,a)+1;而gcd(nexta,op(n-2,a)+op(n-1,a))>1执行nexta:=nexta+1;od;a:=[op(a),nexta];od;返回(a);结束:maxn:=100:alist:=A122089号(maxn):对于i from 1 to maxn do printf(“%d,”,op(i,list));结束时间:#R.J.马塔尔2006年10月21日
数学
f[l_List]:=块[{k=l[[-1]]+1},而[GCD[k,l[-1]]+l[[-2]]>1,k++];追加[l,k]];嵌套[f,{1,1},61](*雷·钱德勒2006年10月19日*)
关键词
非n
作者
勒罗伊·奎特2006年10月17日
扩展
由扩展雷·钱德勒2006年10月19日
更多术语来自R.J.马塔尔2006年10月21日
状态
经核准的