Skip to content

A006041

OEIS Lean4

a(n+1) = (n^2 - 1)*a(n) + n + 1.

offset: 1
codomain: ℕ
n123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
A006041029761145274869620174617682429091399212327311936902304038817532127648465810385323953730610885100896642267426286969496612952421481259590518385290134241180214827611825673984231500954781041015529721307458672274976939812472555468823091511448175515594286353961247763129441213431856139430874259809885748864704415931059963291882966041434972950046994300966638384842850505806221009193487269824736688633987909679430439691109285416127846746097159874561631073927215656637839114273511879005866927872937867508149002225398011607306671412499660962992713229325084977388426268657834932003203437271150020081429794432359737187577195582903830498332102333397214619280890346757888672556084153141413699280194036127050019046896937141511426830611413801128638787507395362990346722015999393427198869598537713587592870115646269969148431328321703092383454691051783769085404515245990161111020419170382494075188834968688116503409712418321988334636150554592113573888811301291438918178172967943182988135803943394066332782017347649123568391026695805085542977852189122183091091754690412744170066834874242146142721491635833654873802139419278436121470210976667426719516427194279749678665174691105762260393565533818649196805812679538235440930304688106885798413606685996226224981962127209667366295150709863527420002014896004744571098417108945620658364857309475775324190022824957091766171093305510562756377734490573262634605037609060643124414446573543792806202936413083418584887639851742057453070869897217981735069269874508028529441678791786565065428463347886796249029212574647927328667722243771332237305290209252203364750360108538806671753962011289327098720219771090686203579853968786779036024745115904459427318023582568118234519520854665617896606952584996921543235282201415466756178878052157179471949183789427961871441223214745791526677548435171805740734957268072380252109546789114336200595310740904641102076149677935087129594085022274130010950819749700887820103139775870589844246628329329870013424919177675663672460482404101443611495545181004415711898362156712179318995754663095913486172258172532984759772186088024092062110334519362933705232669834463529374008822850051854509416474074381061288960126505412067611537789046421607623337113170671905778189664920966998903646260286603278596722874158426673159446261506675589465229984024238331817001233579943559710807208711313710865495133579250942712820039141564106141806094336057345406739701539227804725518236651938723744515379841462316834580654425023235292633014921067624550143022136444579435255940066471721532644841634282868499009414880783618919774887715670039247088160055764702319235810562298920343253127466990644614256159532131678347619922278884397622595713880685407459730517608094193011445015007935599109577029059518500193778956554000962089102614267079706419070218577493210965886668898783283324186656350262738833560106013902063255768490027555474810050382528704040250143166679709440723668958256830148234851130533913683653664288530651068312096725627562652105472769803422285444824484115661839750870207961369795352546182760771941682118906788026058331686869158545718983498376475974493713018484092961675376080097775290671513967784460204435439555263853499496811922476122433898902607771717953767285971963789056634411445363783461559033252686332837212734850149723074632160917014959293063035941329510332067540178968948153011016545578352316386082744451000893093632354287904445819313345261070499731310186852762577687654613053236902222620686580439244172241501202099214705314033828937404751514219219826700715144239366623044157603555336818456016657657435783410681050797211921897688467915852429677030479977106268581038101159496053718763895997077254156706741977190414363243434087145978417265834514210407135142451789205298934432232369214379068869159099499896564116035121175256604318247854513419850692150098349794191446585181467391505013789847489400147128959919548406536709742031649559745766795680860698205161815214512222611251238796032226753472863095787770078075035786583486596527483763136137525681213111125120087805200284547477499022701404679152684489693952297539631169465025346871543110101921491020855635733414398717011245373105333559156434957137585893706114011196939307196010915824086371518982702355440270511478408534318845132578904626223390683653256815446184059433004558420982523472097806095479404009410738171631448304292141652614222769160606865601302050615652762237806302699679747666103893193525209551013343190115353459804701090776957326054987316203838675183382915007945998468987691966618216007099645810188421218450580378051595356527988962127486927028083726154271738030454427787961330334602946629185584700402931625617135202872974054237553647211631970022771374896351617139457482765539481190294010873037470306020172186812644743622538015025650484316946263055876770449222460840009119883269044879248499996104721461287213575565705035681556416260098721860783919248841754742539745250884409031526051049977802251342931715300387332778949472138153749895659771398373459219867387805226074840488343839711395919415621211159735235851098657001139951274907107572032487883939735743749166039635106236709672543565428836093658282570311561439559266874386729491744719846089274940126222764378940936363611583995938721636231064784651239964487802220453476201484734557549164027618102610887660870623927227442581187881820593706850069280607237954206936548254929718792364249700138870287777863528448302313132725786266972147351476496062125636539520119226348869428064815595004451766382198736018539676230437121361082455634311093136528393848073122856812457794013075265422324985154705151567598078133967332876616204992720587584129520681772220151118341082336594364249570558051598490475661370892321331081205228419239742018357017076475964204696704399238172244695204740840637020191569700591521333097988859671116147253499969004565184452357679193233035519221891738279558563256088146641481254474495359465368872755811720073794012840255896143563129403736998847491745664014322161118717748156415455464269720345126430231494896348153364838632100270367648641008668047625831557401391575830396616665670552766020842107630721616641516868904413635207315770948907557353862062008006164267320598248218279316319457359970774380641116673427759469295878670578536265294915068368696003419104930301354218519894799497958594074504422245883694787324501927824472144487148558249408906346479252035106790729581517102012775425006509425270287843071260471837607732936053914960855346302354479935495138572122085375191891458861474579791939308815642050041519008270289349191423912487689097740668636159380196329795849635142100313973221502780873835117590189063803693221939507740010832952589114372850989446690963180983122664708790223976928139365611314526373697408426212132760641016524919066057344075127622824934571776860451522868560371104728493241668164957935065205273319460610617640118804876559310415425401191359167220633023415882596589280626476273681563026721947031895993311133511426864509565473931886663958811323734966516780478310972087705368031798388500498133203144694481998871424046843042599208028158625769561776352456300203956448840123690923723218114243302563185110462284230107383066381814868264686001796225392930598104354884685451690373410020907021254989810834136926801501134485761766761652888839445271027657292636261606381921925843543513367784849205171431508450158460975507230239401291969142887013720835498086422856166037320164417420405264945905848351190644287073804774756615756714075227866905165527420304854543304779644018439773396307477588026320331764005259472442285860882562459820925393566628068608591708587930790342173371128326563146913522692339346664681624105993298690258581393337735147047572182058010379507950138212465475671777327107337297413109573420659738386167964106578120443993370866424891748627443090689169065798541346063363340382997651440616573610483622674958537500245761258319436757235932842950615673442899490381583458877138546860690746427488511421480793932780163945535000112891676752968809602504747157051863420649132451143524488590041497058289799943538724398990534498944741932941780549174127400153355025191328536515222094001184180228369281998108078339334453241071025770752831127004015414054822302013840063208249383954224741264642787705797487402873379855486741320248767553967599642983870429742914043025874740362889445373416524123358131880619931130516090617951357756928133503550589359329340116628961349390704736638169869463453680791058656256441761541159587397143026960566873500315173628493718519930230608319151540274536579741900191135161222497382967805547616496123982492293451368667482161855544537609068854485557832918661972004711650859864520030230723463943436802561459893447850422579522423638215906070992570255891090542618912304363269609490940379729655805265709425604794985001688898849905692556696625703441534295688873551551482574154825926345769908706405310712164437787676428730869168163241153848091725623620694863649898391002129230492506003116101699682392257783165755906795245420107017359733557786918667020652356582785669163313527815041033052635784530528822870496102308661197077844098066966313116971978018538864748151524109822683030840506770565580609549934622082050011722266613961596176798519840974912592773786602344079224404564388550074729202501867111958307023756915528959471769387351144881863454598628808453513500017876047453841901118624473390402373049207916907982090025947990287825797752663401712003747887587888628327005909614990598651277192507331202768570197834415333628317098573142885739843758873488016786809939619957781203224062054224670626581596020494512268181524129136566806553893680943195772266742907477991743262618347448281839253562965240413967515074739934907451034290691058692084648469444838591714244473576612985501392181404943948391640046144596869443884138459503489587791997841938890991439283570902571556918223202370934964911534466043770574932735912563800799748941427062679380044201280098127952861289773977701818640600398579660379027965975362577147853846209340217602780707427453602887261580142793186922230910795131515986152240920040983966779352702321249806459066154275711319554323581445049283901925571109094538628284445249998872001035754817451528778263234725424100946324736347206381645086974848364650154393064553458323311989213048983310176107732471560664150456476463388339422867033282807768014438773388547725279740734372514125492325568327473091274911290166052526096970977190125988064595707412659040198495515271873300922264789588136273924335364190130779084462508874861454654946414383389920630954567347947816594773241174760460071615293590035648229106903599837522674355085237297984215546616230311873899218501153586882897297418115136006688010139345797825471598002708259598372084480953236543304337133538039289480736084385835770348943070288902720867175568103550107496719010104095102936660106848027438496612001226278569871500753681225508409613960183533687637416171204484929586670977064084290016458521178931448651816619411856161658849447222393419448721551221124026276422182644452458020550448154744088390405608992626982313630325492604281293948900728334036619074523155456847016671907519473701535865585360262404805472096316035903196589336378058975731352169776356900906179213362765553615523948370416087301690185352734230014175130354144441109069375687756722960663524101577107212810518725584424589514135568590950787634467722487689546863890951907227689464631296302094353337305936098030448903900731868710351122611848752735553767513111614433412817308452368994682689084880248179175058831346834204038640189788609964128187124405106054126445485146416095404471647058342015419974620985301058129316985216515750500315292151353920127892895209370505849013145042051196766102173537576732212093352920060711650834726801365706898145338924162015404408349608706601589520604438625350590877348742219652616036129189896978056225185535715608550055554620639305787080376054174935194052228088355070233328815242821032672662886190072118843299337291747884191760311364465223234285127032044904290938447730487363874351248112900660204451140693949714060979477687929228250434145402152549724704013761375106308626792013927398011267495142080474015397408250733482666288551224386355524394514351606170455114600826703238236629765979051715210800441933219720732906946445049752934174466188986337173216321428552319917971602145662970815557684967093622202219686278806655873355731917728109024608715729020182648959329048171133680839653677876162134197514946212054618947580587886248862472252136097508894082186954157860170021847347008194948161580566752607241461972655373751149113347328841770593150909705118840196410962804410831377228427606536406697176772859345440905920333387297306962186452466176931544292098311016021717889699686893740864162883406663010022934408331360195511737178326768180343413854445896735278256468146675132330268051644729537148699720085289276742387417562508108583716697433777403637585057580485678343380638971015969650469222945142070390790607219080428984965076930639002501448017925719687000609100387323219062946542963140500444070898855982957669135814367193744233736982350406708375426269964854978368523239196449631618298736154841941427963411979032924557146370852765366729431445456564407131729307945403969131484276038666356553455947942199301962762201124829359542619633764926341021405316140686154266849191019464872661475652075038225764412841714004342496711225368161525876576241510955620529218470472502357272928666003505812430522763294947150811399404143739452266066003443435710059394842816547433118989094721786495889748854590517893029422386828983355315923506957102332772351767241089627814200977209817872431181512207199075575208246139033537461249124584879724255646777000860798295359044716680736508118634101063052310127470092683435696181912308029048207793900