0

2504730781961

#include<stdio.h>
#include<string.h>
char*q(char*o){char*s=o,*e=s+strlen(s)-1;while(s
<e){char t=*e;*e--=*s;*s++=t;}return o;}char*u(a
,b,c,n)char*a,*b,*c;size_t n;{char*d=a,*e=b,*f=c
;int x=0;a=q(a);b=q(b);for(;;){int y=0;if(c>=&f[
n-1]){return 0;}if(*a){y+=*a-'0';++a;}if(*b){y+=
*b-'0';++b;}y+=x;x=y>10;if(!y&&!*a&&!*b){break;}
else if(y>9){x=1;y-=10;}else{x=0;}*c++=y+'0';}*c
='\0';;strcpy(d,q(e));strcpy(e,q(f));return(f);}
char A[1024]="0";char B[sizeof(A)/sizeof(*A)]="\
1";char C[sizeof(A)/sizeof(*A)];;int main(){char
f[]="f(%d)= %s\n";int i=0;printf(f,i++,A);printf
(f,i++,B);while(i<=10000){char*c=u(A,B,C,sizeof(
C));if(!(c)){break;}printf(f,i++,c);}return(0);}
0

Someone made a mistake somewhere because a few of the current posts are wrong. I will use #70 as the correction point. It should have been 308061521170129, very close but not exact, then comes 498454011879264. After that the number 806515533049393.

0

I noticed that too. My reference:

f(50)= 12586269025
f(51)= 20365011074
f(52)= 32951280099
f(53)= 53316291173
f(54)= 86267571272
f(55)= 139583862445
f(56)= 225851433717
f(57)= 365435296162
f(58)= 591286729879
f(59)= 956722026041
f(60)= 1548008755920
f(61)= 2504730781961
f(62)= 4052739537881
f(63)= 6557470319842
f(64)= 10610209857723
f(65)= 17167680177565
f(66)= 27777890035288
f(67)= 44945570212853
f(68)= 72723460248141
f(69)= 117669030460994
f(70)= 190392490709135
f(71)= 308061521170129
f(72)= 498454011879264
f(73)= 806515533049393

f(74)= 1304969544928657

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.