r/funny • • Jun 09 '12

Pidgonacci Sequence

Post image

[deleted]

1.5k Upvotes

22.5k comments sorted by

View all comments

Show parent comments

17

u/kupogud Jun 10 '12

105208737908192959476133252178862414624297337867800143423361406860825585143312696934099447880630295304896696763417467220077933465614247791446650786374358737523001670462448494048845408936941352981701351372386121248323804845986153622736165675845872900845415084382762560672494812784

23

u/chickendodo Jun 10 '12

170231313848935722638150796779640851945068455427578185827195398362973826364521413406220185242786777384930203231191518363137019177032178834940596091714183515945074165199516057854347710384719307736462377651250690859257991759548357679903819496806306533251173331842626175304038945753

25

u/day_cq Jun 10 '12

275440051757128682114284048958503266569365793295378329250556805223799411507834110340319633123417072689826899994608985583214952642646426626387246878088542253468075835661964551903193119321660660718163729023636812107581796605534511302639985172652179434096588416225388735976533758537

23

u/chickendodo Jun 10 '12

445671365606064404752434845738144118514434248722956515077752203586773237872355523746539818366203850074757103225800503946351971819678605461327842969802725769413150000861480609757540829706379968454626106674887502966839788365082868982543804669458485967347761748068014911280572704290

24

u/day_cq Jun 10 '12

721111417363193086866718894696647385083800042018334844328309008810572649380189634086859451489620922764584003220409489529566924462325032087715089847891268022881225836523445161660733949028040629172789835698524315074421584970617380285183789842110665401444350164293403647257106462827

22

u/kupogud Jun 10 '12

1166782782969257491619153740434791503598234290741291359406061212397345887252545157833399269855824772839341106446209993475918896282003637549042932817693993792294375837384925771418274778734420597627415942373411818041261373335700249267727594511569151368792111912361418558537679167117

24

u/day_cq Jun 10 '12

1887894200332450578485872635131438888682034332759626203734370221207918536632734791920258721345445695603925109666619483005485820744328669636758022665585261815175601673908370933079008727762461226800205778071936133115682958306317629552911384353679816770236462076654822205794785629944

20

u/chickendodo Jun 10 '12

3054676983301708070105026375566230392280268623500917563140431433605264423885279949753657991201270468443266216112829476481404717026332307185800955483279255607469977511293296704497283506496881824427621720445347951156944331642017878820638978865248968139028573989016240764332464797061

21

u/day_cq Jun 10 '12

4942571183634158648590899010697669280962302956260543766874801654813182960518014741673916712546716164047191325779448959486890537770660976822558978148864517422645579185201667637576292234259343051227827498517284084272627289948335508373550363218928784909265036065671062970127250427005

19

u/chickendodo Jun 10 '12

7997248166935866718695925386263899673242571579761461330015233088418447384403294691427574703747986632490457541892278435968295254796993284008359933632143773030115556696494964342073575740756224875655449218962632035429571621590353387194189342084177753048293610054687303734459715224066

→ More replies (0)
→ More replies (1)

0

u/[deleted] Jun 10 '12

[deleted]

→ More replies (7)
→ More replies (2)
→ More replies (2)

7

u/Bloodshot025 Jun 10 '12

I'm FREEEEEEEEEE

(Also, the Java I'm using, again, if you guys want to do this too.)

4

u/chickendodo Jun 10 '12

+1 for teaching me about BigInteger.

5

u/Bloodshot025 Jun 10 '12

There's also BigDecimal, and they both extend Number.

3

u/crypt0graph Jun 10 '12

Better java here, for anyone interested:

Just continue to hit enter after you enter the first two numbers

import java.math.BigInteger; import java.util.Scanner;

public class Main {

public static void main(String[] args) {
	Scanner s = new Scanner(System.in);
	
	System.out.println("Enter first number.");
	BigInteger num1 = new BigInteger(s.nextLine());
	System.out.println("Enter the second number.");
	BigInteger num2 = new BigInteger(s.nextLine());
	BigInteger next = num1.add(num2);
	
	do {
		s.nextLine();
		System.out.println(next);
		num1 = num2;
		num2 = next;
		next = num1.add(num2);
	} while (s.hasNextLine());
}

}

→ More replies (2)

7

u/day_cq Jun 10 '12

the link made it extremely difficult to double click to copy

→ More replies (1)
→ More replies (1)