Skip to content

A109851

OEIS Lean4

a(1) = 1, a(2) = 2; for n > 2, sum of absolute differences of all combinations of pairs of previous terms.

offset: 1
codomain: ℕ
n123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
A10985112124147449438543409433649436628944357969456249809478273556941168002196941860366043694315009850516945650321271956941070212382793169421344395784265169444710224721517716949813774978695241169422524724780273671316945395650595579732041169413465573429000461524116943495417910345051578441169494235996663831319584841169426349722017614468237640411694763163221495922964449608411694228675682058451778508086484116947081041227206720793279388884116942263567386719513292659610656841169474624547543485234088644564000841169425348978728735197411521329776968411694886444642594247274883742274570568411694318858885417526820638836962871401684116941178865312810614769256881994752215368411694447640834350273740825908173364250729684116941744587590201480987302614295661666519368411694697375278608596255161035534286713243753684116942857448078957843551196942057882067296471368411694119941291225031168429792159244924698124503368411694515454654650618413820938649828775782372987936841169422667717777887691480851153741617241535036642336841169410195195583235559794972108328720982004049010903368411694468747042234242972282497560728742223084186656983368411694220206838348315913591961938235297405538506560227433684116941056513649879504313931053614437977660430641185579223368411694517466689860684677199520672245459257343933771338467433684116942586254435795516638021002747729943329432530174547222743368411694131846150543077373323374587453505210918037506842629398743368411694685336074812173392096176099215381912552549629358290255074336841169436309363441979053094579624044127045659972081199081737960674336841169419600068412689905570286858130693568880206267859641479140630743368411694107763368121754623273404526209456998217856635548042787599695074336841169460327515998289500553904515884071649126886731262244466099950870743368411694343757080807139089686062134133676516037525213094779464486532431074336841169419931768174831127188265019721759298881278044531270970501325698383074336841169411756244227222464250044235173916710184304686843036662416748364895510743368411694705171836955671642939739333775863741913819070706473825120854839596310743368411694430035229933910715430111403484946326774141964863761407500713497963451107433684116942665501294692385865347438003261058306678437596257895490097002037114770710743368411694167882860911729057875026330366752569768742911781863614498953635338175583510743368411694107417938764020760664944754416302093033408692596606296310657781666060676027107433684116946980460098832746316267586676737548969855290818717804207079093726990190488507107433684116944606012426633686329860419535499398428400995111427168663177958661183827581121871074336841169430853193674487273039860924534054493532146462272850654027735819616341684788898747107433684116942097549479038512772707352940008364144404979130068990381004161434631526222882384827107433684116941446995931691562722497643020077357300546304332080026315423775288706792593513329243471074336841169410126842651477399435643750736748651343770412218663357512838513249394020578342870690747107433684116947188589997913626640366167876033536599175909189859935540848641494065512542267420521051471074336841169451747574313863101715306675441998914277232667406233767707270709952721872076911483113941947107433684116943776843792241100052458020957212874839341233250975321280889837453594740292132897580628028347107433684116942794339639188566344074188778082576932940772764350877972563997764831041033762758687966704219471074336841169420953717973415021711029483141636619077399280515243523495419645203696306334686998709999849941947107433684116941592199302695123567534306367192592084269394726664684636555826297671899675914301934641441493461947107433684116941225781093262666815959266264391161629040530440801716503422071385377235591335446520013624480445019471074336841169495594790911648482078105275920491546868471776936537149753830094932617529968287119572056009590256219471074336841169475507465665641278877876400387524219807835402500996363765360639551646007857474692906834044332653410194710743368411694603962888618762480344550421065306856693989018103147574519114772773723261248082042979591278327272125019471074336841169448913346394846829029342335684216216068463632724200030564067990187076974758697182511781129063741821629019471074336841169440102827939055482860471607272625907714335744166241444357070757741599435975495234209535072274677348809570194710743368411694332803946937293769218526087228267678866737769480319530062576721843907873289188101211616773394999158805181019471074336841169427951471734981904327546755913312695078872290154830731922719626991702733967386828635627331131467638768439997019471074336841169423755382337187738017854462911304890240793442429096157852985688999297029519656862740609630515676420055873993570194710743368411694204267999764324876983164806319807653318119932179821130375621606372597721699819438580639835009078637552017904317019471074336841169417768912152927055853763169128814720946899651082691122899733725866494715352763095889253001695312535250091471835837019471074336841169415634575976312473818104035495083670907820743923276856786032469007572410668863314235484208454020167171535634178095970194710743368411694139129750605201756391951397403288528006112626363132201136215919466033666353373912585214358935298688906562566609474237019471074336841169412520096121286547567304640844243503010385862303735538592321356450340911942137256217135148787025999185953372853859291837019471074336841169411391880358532890163603593805067030209069430829446245201901691447599548350384705459311791817432797444172131089935926934370194710743368411694104792638491197516145321395429452978667390207381906410827192165669244435759901133199623230213718624305693108833849065640637019471074336841169497445635308382106391386977479814566137903337871853525373783778424463011617721287599929839761874256685043514112454080497302370194710743368411694915883027411457444200516074887869798315347030288709288433189831459489633406921525678568894097715887823178231837931952554152637019471074336841169486999037096070284632531366903177262259963233197933483198535277925078606196696114232943280355642919792517196872373153680474280637019471074336841169483509818276873176947122930464189589385781603052918317785683357349125137962724586141303555806639824946431429863637544395608065686370194710743368411694809957312515038316472449175959449781541443276298399966429438980062693727233621421104179348710572921255153844567027739169953038504637019471074336841169479367377719875436196690663701436470396622224643622997162214762124185252644093819745128980675441648919785202599472098242748391768232637019471074336841169478565519980485548263382939017236615112896195800087581195449617533923185854132534538235843120218181727742600293350740780970138260113046370194710743368411694