Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- """ Print Output of:
- n <--- Starting at n = 111
- n**2-n
- n**3-n
- n**4-n
- n**5-n <--- 1st Repeat
- n**6-n
- n**7-n
- n**8-n
- n**9-n
- n**10-n <--- 2nd Repeat
- n**11-n
- n**12-n
- n**13-n
- n**14-n
- n**15-n <--- 3rd Repeat (Infinite Pattern)"""
- n = 111 # Starting Value & The Exponential Function
- x = ("\n") #<--- Start a new line
- line = ("\n--------------------------------------")
- def end():
- n = 111
- print(line,"\n 111: [0]",x," 222: [2,4,6]",x," 333: [0,4,6,8]",x," 444: [0,2]",x," 555: [0]",x,"[0,2,4,6,0,4,6,8,0,2,0]\n",x," 666: [0]",x," 777: [0,2,4,6]",x," 888: [0,4,6,8]",x," 999: [0,2]",x,"1110: [0]",x,"[0,2,4,6,0,4,6,8,0,2,0]\n",x,"1221: [0]",x,"1332: [0,2,4,6]",x,"1443: [0,4,6,8]",x,"1554: [0,2]",x,"1665: [0]",x,"[0,2,4,6,0,4,6,8,0,2,0]\n",line,x,"\n !! This Pattern Continues Forever !!",x,line)
- for i in range(0,15): #<--- 1776: [0] Excluded in Output
- print(x,x,n,x)
- print(n**2-n)
- print(n**3-n)
- print(n**4-n)
- print(n**5-n)
- print(n**6-n)
- print(n**7-n)
- print(n**8-n)
- print(n**9-n)
- print(n**10-n)
- print(n**11-n)
- print(n**12-n)
- print(n**13-n)
- print(n**14-n)
- print(n**15-n) #<--- The List
- n = n + 111 #<--- The Exponential Function
- end()
- #end
- """
- OUTPUT: >>>
- 111
- 12210
- 1367520
- 151806930
- 16850581440
- 1870414552050
- 207616015289760
- 23045377697175570
- 2558036924386500480
- 283942098606901565490
- 31517572945366073781600
- 3498450596935634189769810
- 388328016259855395064461120
- 43104409804843948852155196530
- 4784589488337678322589226827040
- 222
- 49062
- 10940826
- 2428912434
- 539218609410
- 119706531338082
- 26574849957103266
- 5899616690476974114
- 1309714905285888302370
- 290756708973467203175202
- 64547989392109719104943906
- 14329653645048357641297596194
- 3181183109200735396368066404130
- 706222650242563257993710741765922
- 156781428353849043274603784672083746
- 333
- 110556
- 36925704
- 12296369988
- 4094691316560
- 1363532208525036
- 454056225438947544
- 151200723071169642708
- 50349840782699491132320
- 16766496980638930547173116
- 5583243494552763872208758184
- 1859220083686070369445516585828
- 619120287867461433025357023191280
- 206167055859864657197443888722806796
- 68653629601334930846748814944694773624
- 444
- 196692
- 87527940
- 38862602052
- 17254995507780
- 7661218005651012
- 3401580794509246020
- 1510301872762105429572
- 670574031506374810926660
- 297734869988830416051633732
- 132194282275040704726925573700
- 58694261330118072898754954919492
- 26060252030572424367047199984451140
- 11570751901574156418968956793096502852
- 5137413844298925450022216816134847462980
- 555
- 307470
- 170953320
- 94879400070
- 52658067346320
- 29225227377515070
- 16220001194521171320
- 9002100662959250390070
- 4996165867942383966796320
- 2772872056708023101572265070
- 1538943991472952821372607421320
- 854113915267488815861797119140070
- 474033222973456292803297401123046320
- 263088438750268242505830057623291015070
- 146014083506398874590735681980926513671320
- 666
- 442890
- 295407630
- 196741924470
- 131030122139910
- 87266061345622950
- 58119196856185327590
- 38707385106219428617830
- 25779118480742139459917670
- 17168892908174264880305611110
- 11434482676844060410283537442150
- 7615365462778144233248835936914790
- 5071833398210244059343724733985693030
- 3377841043208022543522920672834472000870
- 2249642134776543013986265168107758353022310
- 777
- 602952
- 469096656
- 364488704664
- 283207724126880
- 220052401647188712
- 170980716079866232176
- 132852016394056063003704
- 103226016738181560954480960
- 80206615005567072861632308872
- 62320539859325615613488304596496
- 48423059470696003331680412672080344
- 37624717208730794588715680646207030240
- 29234405271183827395432083862102863099432
- 22715132895709833886250729160853924628861616
- 888
- 787656
- 700226184
- 621801639048
- 552159856262280
- 490317952361692296
- 435402341697183546504
- 386637279427098990083208
- 343333904131263903194676360
- 304880506868562346036873395336
- 270733890099283363280743575846024
- 240411694408163626593300295352056968
- 213485584634449300414850662272627375240
- 189575199155390978768387388098093110000776
- 168342776849987189146328000631106681681476744
- 999
- 997002
- 997002000
- 996005995002
- 995009990004000
- 994014980014993002
- 993020965034979006000
- 992027944069944027991002
- 991035916125874083964008000
- 990044880209748209880044989002
- 989054835329538461670164945010000
- 988065780494208923208494780065987002
- 987077714713714714285286285285922012000
- 986090636999000999571000999000636090985002
- 985104546362001998571429998001635454895014000
- 1110
- 1230990
- 1367629890
- 1518070408890
- 1685058155098890
- 1870414552160998890
- 2076160152898709998890
- 2304537769717568099998890
- 2558036924386500590999998890
- 2839420986069015656009999998890
- 3151757294536607378171099999998890
- 3498450596935634189769920999999998890
- 3883280162598553950644612309999999998890
- 4310440980484394885215519664099999999998890
- 4784589488337678322589226827150999999999998890
- 1221
- 1489620
- 1820315640
- 2222606886060
- 2713803009368880
- 3313553474440892100
- 4045848792292330743720
- 4939981375388935839571740
- 6031717259349890660118584160
- 7364726773666216496004792748980
- 8992331390646450341621851947994200
- 10979636627979315867120281228502407820
- 13406136322762744673753863380001441437840
- 16368892450093311246653467186981759997092260
- 19986417681563933032163883435304728956451139080
- 1332
- 1772892
- 2363265036
- 3147870800844
- 4192963908497100
- 5585027926119910092
- 7439257197591722015436
- 9909090587192173726333644
- 13198908662139975403478186700
- 17580946337970447237432946457292
- 23417820522176635720260684682885836
- 31192536935539278779387231997605706444
- 41548459198138319334143793020810802756300
- 55342547651920241353079532303719989273164492
- 73716273472357761482301937028555025711856876236
- 1443
- 2080806
- 3004683864
- 4335760896558
- 6256502975814000
- 9028133794101682806
- 13027597064888730369864
- 18798822564634437925794558
- 27126700960767493926923628000
- 39143829486387493736550797284806
- 56484545948857153461842800484055864
- 81507199804200872445439161098494692558
- 117614889317461858938768709465127843442000
- 169718285285097462448643247758179478088886806
- 244903485666395638313392206515052986882265741864
- 1554
- 2413362
- 3752777910
- 5831819285502
- 9062647172083470
- 14083353705420125742
- 21885531658222877816430
- 34010116196878352129145582
- 52851720569948959208694647790
- 82131573765700682610311485079022
- 127632465631898860776424047815213550
- 198340851591970829646562970304844270062
- 308221683373922669270758855853727998089710
- 478976495963075828046759261996693309033822702
- 744329474726619836784663893142861402238562892270
- 1665
- 2770560
- 4615752960
- 7685231448960
- 12795910365288960
- 21305190758208888960
- 35473142612417802888960
- 59062782449675641812888960
- 98339532778709943618462888960
- 163735322076552056124740712888960
- 272619311257459173447693286962888960
- 453911153243669523790409322793212888960
- 755762070150709757111031522450699462888960
- 1258343846800931745589867484880414605712888960
- 2095142504923551356407129362325890318511962888960
- --------------------------------------
- 111: [0]
- 222: [2,4,6]
- 333: [0,4,6,8]
- 444: [0,2]
- 555: [0]
- [0,2,4,6,0,4,6,8,0,2,0]
- 666: [0]
- 777: [0,2,4,6]
- 888: [0,4,6,8]
- 999: [0,2]
- 1110: [0]
- [0,2,4,6,0,4,6,8,0,2,0]
- 1221: [0]
- 1332: [0,2,4,6]
- 1443: [0,4,6,8]
- 1554: [0,2]
- 1665: [0]
- [0,2,4,6,0,4,6,8,0,2,0]
- --------------------------------------
- !! This Pattern Continues Forever !!
- --------------------------------------"""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement