Skip to content

A215203

OEIS Lean4

a(0) = 0, a(n) = a(n - 1)*2^(n + 1) + 2^n - 1. That is, add one 0 and n 1’s to the binary representation of previous term.

offset: 0
codomain: ℕ
n01234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
A215203011118358713757754809926312313411455630446666521564557738651806711322142487589001523154154956291645502388223443637401941159955564326911726855519340396471196593211801523817601657746111568169966364313190315609103422420491677315869156516292427775204591640378349868512914560208290348109339033553632470975342147931449474471242065014774571610931128118860942720184054683782071578559782466130600751870771129484762731873759715324101469487559902459205360813993645729382361834029132674518934511370044938775224562127440841788402128665654067125935071572729326546509677742496688467948182937363247646220187086751646351352175591488755698105026634547881296608557378709738288381110638311574215545961473638336500368334615918338822533562866855561834591007080567640183498851155914245153570908903833512247491272588230780175736625029336300034005791948964254039376797231892459368368246199918773927935821915226153310507427427405268912725769245290067115337065189988130190647518377350536148865810576569270271110315594262903515985436431220128695083035155107509188054843988095181156916765446235621482638872465497490458673151296126168498734891975539177735878826432994997253149579196917989531885252595594866053025361355618136016631181295765778595831589815261489814723011292000427913606685717310667359094558655886291896886403473829204055661101202650069888294698951152931360158515117070511386951106181081994451360767365571406999043448114543996463353979592267867893058271937483311820796755850263013418354216034049862926335366586440664753010993853100315239792662966347067985564675196633816225024101209535361668516968826904080461395198881578151202620049814918509469148119031574476773812158682136127522882162199885261211005583488880062404609974152691506748421721812373932604510510644969727793936283396183468965851075057492235240079351352465250366962157387425426172875662054922370737267271627489538847791724243066372286918960031177731856149061680969556995712858879162084832261635674094026015907633954815232351760772102178593943880282054536432009589525414013602048650557335479097736816949187106477449579947424703856834041314727789643706574809509654837428030246691858543706868568555517983545709473556529850721835766107917311373716560298794247184901957504445002169731295176928844125658905012019900698188370149597296697848216171178584012693305922757077433496900130167083499515486250836529606827602575687457362657609443577833673109324782735035591675689431943192622821107078205873836447353663981858598410082701962701124344056977616991650618359956705408156231322663378905097830375402457345751371072932392521581088028301458264169140902734638365706558857907035036256143504378110106695944458997800153138615896648965072372290816493346641866090594925411858252599504606240115245604700908179947512072646965363437461154592362875044782679372068311778488253831607981417972655422889529896388034475620649895373230258973399514540997203334259745678038016391861800214506098095939363216507325456976020116468124763990143497404415113944971934586990717443130864123928014634627676351571694675544358032419433749293921033290251220460943367717041224654955026545867000826215779379922568010851306911654265294267231173298743426331395346642799448163652925282547525868742246312528382156868837795800929889312268557156196742632101709486867464927911843218126234980597456800448098247927111532589486610518151951680363564848023515868644918689392994065863310698849019173222101203760061619807993256191571793489202225580206729461752755020371739729924838078464050436781289214554795346217061979581611612588246678096570433396300733305862156382403799873699102994035037477568328306493997812068229505131090145535460241584240162093241065046880666629981938245138630256091545467009431416699277541375121167077339503643146773351409444225742363455799021690626852039762346383773095899191393701864016454958038289883770780914345757736101571013532709701455718636836862414441434807323465174144724226050142996690546380702217808215675370866168755844122161748770255944039007801835511065796883507345072513527955922695076043760362295991726155692544430426788924030918039037530452633422337293327086721321343991821748009463884481662144541153561378867112504444118569664955077704339096116074310313855973767169956097704802029566295067767889490775034259752257889045906058117111874969706021998125970371005755271108930840093049813375273077670936457218355612803674326075232528230815838503320166003113308831948456837317567226192906436391827932329466486842948098981779885783111726178214995462923462340149212527782043296424910827187847913826647619795638521922831278606034071977983659696317919659311727905319707075968407274432549236354719845881113799347973364767934062520562789936885822731925725216822288024827214403497700851939734956563726762886296343193065584505005302522599851053018355562090057834662174356846785935294548027186226334802516192488530710945492121791592923742793659558102302714642200143063540530107551905753195452984152713291248522520155425249807980710667153171133251971498464776212839914479464176412443484687423574463562174463674530507958643244008371992820829588885735264520056315902733314450729570490893773667163836999112894318198179026805143437735694365330178933612904973407810694679729302746955775653331588577507011028006954527373679593483190594947544751550858929271534630735520111376466197732177684989283734912130596906435194853155177588995531832823921001098007034381838111846164393880890836321158791590067709626796202675356153404145489313302598847973470914703563110143224040356072481151240830462928375139810625107756909177432245796863183896493679189673481076815282544908083212640474302676175644746342854218110909841100237189930241829930525652664445326743790819602191986786969702101071436557846197273906606764344393443983671826098509936457331652732601808588357477491279342072458546522344905332061258318419901624688923791556709591010289789036895660019710108133021130015175695544606791827455103524522551042423309224299266357772926153436358369073244362838803319943342589040175359641333704842401913455284433445236849474437965455446939925147413945591488607615633749470241298674203581277941229086495903258759941822988608771480892329086367343526434033058895511518736735518533378881378371321562232290462427538672712368761333267967789445422532405504036234513000431615116558250296145791895917418375419901444940950991591835037169617212009069381154990069173391082534239111230882648948742601015418365109760667773053641642704971960666204595419162488000488216340839749508172754153566202436162577680473535065631574777475861952982807829299554986379257027615569974963267922581865441866283842030763099978049854756631217111979298664224714214169804133353832579071262465846300339596710897069766306916977116199864251555494111713862834009642083623137079193739147395089291410031220463108978480654531538200020850594760161530503578699489487206113697904366042365041476598006445671711367093969945463814042627251767469567910856280913789236938723889977170089425170215484142372496599038456797781158961769319779418042074989413055521951708508663863564217207158958480773087231118204108759569128391141708945793332922579813275665439954235705955333638852632675789931184083088023678573357920191064626328980252679904246593147090773951668519192695959145356572097905360989068544299307838946458437007339164949500289075328801440754826304802392100664903528728678988602169959173483631756107734659130080309310019401760274408933050246698789358241286958417029232241181343150315536210172780871436837742182310646879603265142175640924686096437119335958272410013081081355305036135334217930370317820136834598088500758460846533784717343970501119287660990141250229570004048997304848365043579232864395353099836176033984523252939511254492130642139463460483443870359267034829997725460954028131501026610601709113469227022808275681861715154124788169198395262103728339702386558879679957224274303126669590975534405168688837597040629916325242220838911191797132055693714359239036070981065316681446921115177996471730859614112511200238197046851880730624005934400187530882655222903948328707594749294376745829634029002030080236957629121486912891941041130067559343768486393357865656555184475498228013878833922821576985603056532703205798228616000926143056416009262406262353551863762894726111994093235776987348085521330106862415013214449354875343523511560085782064233897187077442269191734441601351775420415691021993965401620362095812198680397753938721605859058725947346721906637492752813036384798466108605756005266994188387767137665379023567854675985730119960306420306356752645662869387043721875617263534541205375937304449687926546537243762448863959919887011395402682386730206080048774197631374334175069842329255065035220483829075735245019952962374750261474803282984708882202490483113198690310681733938405282505162089059318976156695498298916289585723764353096944608870349793382312438397968706171895902626228051397712819951655885310779842351896196244888934052192306644981067755959091826587457461977164716644588714805374585758565053155634951068200210679157358850300787663186685083120280351412060972481714943338288023699206337551339649370059809044716576801498118080221624958840137574145590358570784982095357717987958124872705152128378865371574812483842325351865318928736985775397136214545956083862994929307673465923917108671929725329810795858679667097571759826568900548968182992037375587894949449946647269773635858813304313350784199426795896904717199746367683372159570172749374087063148873863054855631328799387247351090578084115151106220289039457555514347135103285431252259365794574934920063752172159160058118627356637034648228635673797048028949099492159429160029536384381831945006064286799964333137520640281292538586318420287363050950946395820881683399014721339748652447095228218632953546802784488348615926006227220360872165271704149675057543643135206833618045358035736112342782582139853106920816833923494750627230383974010225174768143205027868805080215102129242997525200664840770569533142830273326436865425119868023067582352015337519781198197393603013387064011795730839207575642445772144143479616238686177682335996969073454818956967293298864230900101516899256987670885920054639313179563076600533556019741279423358006083382703423052192668442264924181112429674113490964468623216610712139123188493801252462158792521866287263454176547760285840251373682304042003333111192314630600660412126644720888089274484338836312100473480779728092012079111137449096591278076150348869373081390112056224424513136823163984493756782628525006481882351297947650431235204791626219280798409869590525225211175264975239336827026868883396903028778030948086264992239486964876530109127993733252345686862325731656771257883824614773222531554445763225192590103843784122652827975908398323911506122834466053215752550665970065561476237339162836751911164473485514814038252361918018813498994674954832594600797453570902805523213792051113746451778768703537628789047819241799220537662454116734599298437445329887497193509272319864974578357570892494661264760481874488411079131403945860591804273181923112807333968609213751475566098873115909823205221621017699714952739721299308011119511834485215188299336053516126758605374090404001438711735411421947963622484586704290062900399070794667959340862728969224413992220938653452710662681168633451779126873273580297401742809205420465084058321725740491484736412402429885790713363903693143637200198896245718167763900632950696459211668334904373332148223316971597355669632868174256159220420390160691799100540684003629419737969603092774880787461077686061446820687094682403084064943283038435170901226178345369853567673087890421603817219921625443535695366498179310715713156554682161861657921422182494483308018869840225581574999200353399770589671331008962334087370339899257943993471825592389818595974960483376649483816721627990228831783635962316489980760157462795736119971258231840719634533769062927575050619626063644324976795184077619039777299681688652462174546703006474649154077054013448148287872681424589911886746740294942711461773483763737245546724041225005698140034472887668868739867263224462085148386506532430684055527624227265640199471781374658539342133019943861300784862273376129703206040217149639703611122873808025348172830341554700612404826164136550157065864401854657000432034907379688805056827474307833510479655881903008181204081864351331432525200078006847599159259964577049677665471831846320895279601513308490542174820167535479223249790098857737586603962799093584612832158783927505139243513819294831786550560321926808411262136176500523360376419545974596475475799384711964877158226085889589946778763919351348248067436224275212444343840552418425658072474037727687345752448992076903531727906902937444366027669083435642462685353427198391455863643271215208767770238709369835336904012009768685673766740397590096298397113686677165608354590463291174206181707261106747022181940882074598307657853838424656984863769684844681254587243214510261980698590590213963922165383852712126592567307969363377204007416271827752200271302341409154094966239468411609064121058542674259318054423869284546084217408453577304126480396372107119250205255667625153488394193453869984507668949712136610843025310032154503893105797116108318791696383248707870478695260492921284269985030091214476543616937607823318438156939508451023802722076707317640649660156968081743531659384787768073862596195841246030615620028119211589591627160754667119714087197920118321187316341424739764719814387664146253393297163756966285023437921383722745358424676098362587398124042014771783647871218739286259697574064710565452488397975254725286188695439722509797185807467033686689274323057303939840336060542968329082226517911697553535705910628830016619326606723301648060385312517253381879771478093018055884074489227296728396540901098025498961539382610652651726210287125431320994225811738513317937807359175700871675589081362127349434375478896801105899586258067286180789730701523230618466962118726077916218031121926970413799319811463147086122398491738529913816147790810116787052417684235283459313570614346633196139939675325059958347564807480236600750212065634175433657808402329048973218620168998883104462317824394149055668079876609529483085826397866302140127977480764436685675329401509175392217326780783649534417461290441954803767724532094840131225128536297611431362290355888909168984988611633355962719718021212393018324554202174270106286838227723273713569291954719500311688856653005321342467441259392253808938496839004049777572605284699822473871356770472227068529593873214412411288748391402407436601490443063934152832288956144322339527190271988501019361144837211936420021401385391281631202650777028207081210464865246164074445494895574861404946739257589558341569802114417331751479184204473915133558901734198898023312363984495291413530887936352716522538071518054333277126888101262774539903764034813665485379107609636352358126464210505297987022854388007815393185193627624744167467398653181691798016789439342841931082431450479282515655388598024948141008459635280434477625054588190633715206287308017659358106436192077559464603574273754441558158090492671036205389594177666245366425608517040417645100572879098108654387199914534744713206368324327353346145074497288825282237316637189421108564698347390701324068678253906846109186861763231348486189128768348842659080234205411904329167833944487959526007681346657019005258087551578075870555014444718332321726707879539663692583051899669214457083837373174139453550025607362752440585853477660539151172891922793015479045787612017537365765150448098200579731438438111418712114294768623059393488617259686678452099675993536498487088173361266656759190531443031678095884294571705854324093397905390275837503063790230401284187543232158870460997685026753083288056444595552468156556904789956574522470301558935052114898066092426757090602401699042885899772800262500750217707512948956562687176683599539269731577273689697226139718776714326802222925021405155918252508833190932906196654095222480952091560761993863691925307219009472982444738925239200207857466843473933022988843242442256498466209914776020256320362255540906251050681371213439429286618238961457872552987626079008468570161422399646570599703514000846716201044954031510834053939334634874604513988891645260858831089731413531049062188383940984967305324068299021359189552251931258939451020957171655785135206079161146444073463592361155215590041592701476735396017291548770850645149171221821302172738275559219973468623161663543408390063093869796881701720946721850889107230138861434657404453577921011817540313043509587192502533750783174075670388405012274758684312887344512225349402344950283519914409260733171834710105120648987433660170779823307570849428507278971889453568089588050100596986594426538209954165301351096574701498469648185552947137513197508293080167136418168105507352775237093057725679945662226382106830675809488003789161682547858737833792478030958240862068938619184115439236292787874246135091112907770033013372333561447068362820015592640003404415178687585351741783665734603098294065346081974102228067360126067641219939388818824878104842546111637882202984391737292382240476019031041043054435589138580070952194091646063237212411363236232473713561095606716302299507059574484371867766609359883384975389393801374130863766850977307779403642107115811635120551227783131695624532948041446960386315808672337017807159034523965497212073274033630257042552545335040199620184905486918230059894715695876046660152318385599651620818951588576988923679404353703661777601285070295132502978360373973594237818617478413411503028440974064382664154011243756424863952011016410434557660839128860275195196366901680139667415258080811349392976368098050949736424355887277502386012022485067128669446282265589962293115503981267249947609018930417852323266892397834639080762812194001079461225572888967894805627813563146796258263298192155661073350552939964458009378865372783127725822792347895211635707528747476362122976543605658718575598329006945916046424907187760207061752655153554728284849805882281140845153143535169349262623375354852521463244028064314859326054222814440827643558825582368127008704683282800514574037041063349067029520065803107504531460336963840811248201978964258632165122198814769351456758343824322179471936822278648973034586426218052739954435556907281547040662390943153843153111031255263935401949850272840526486348795122880362077493251306059985148386019682868744440935581611012041185212347403983229401757358067545439994132396456191287047558940008775211657079151584315249169974172306891077196903785784285916892403629396632612370471104194264260034833643470263482886782112417074688749244240255849117380991628978844521913436642771278719650544191705929696787735938731400743533406573634236446713097367317495856726873725403215028453800016111181642886882630135352627639860010819808189743103229153847154291651824551113712904882039096731762288332362891921625512400333471306624120824420944777951325897653584964076948174295906061160651183497526510078829560324572656264969658183746955259966127995077367477796257171321366964680932986233866716239959025443976488860469414037038287801106008912744059663842105252391322074316068638703902123026319343747099052707306754613117289579364532607902506460097403457348240494609409282360941431436165167009328265195157586524925639340087162821599682889169216952512330324653828521318647242442347662445746853986515726280101120503837667507157923061706450735640110007104050220977762637819741901397735395787976220876852955773621256133643057734637067918661879627837414000934512854431880387996478112569650527426277752564309475358007121488451243757591585997455352164296894444121050812857618256126334759456363527574323780854197489170666425442672367984620148589145743900526835096321695290096422541622937562894276693730723843288024975567426849470662703020558756670880635631575885338734362803214668116830739528890593988034973801400174475941131505207919449125744125190134418267136650942516070581827522469625480779301975656838328442423097817831600855133496227255485269967902075348880117831806530368226380708843691655939478796367448758950479825568643236826457796067026895625554859978902618643881876330182776523281180855085184918506642578270995824052989387816575576662513516777040934058761442354248564657362285483686884753533799589369903945965376301815304943362473491228557780714059907947743003589867079698285344992522679298081840594613029511705767152508466502853140919467022389084154088241245320711883031881790982448772943335536366913972561298323497916702541600655540978786137621016315187999516624349345360676738321114524129218196063858483402686558998710184952032894836974627728106084569502312367070977797573669019540742223227491359226412337719203742509110692408595838946427959002541126001610114266131824119713962671371483539343049032839854425425284904839827905413007773609627641661880139297470082550425084966538301771334167757949279478030282545408252029708239354972957452759736499705688826994560895238892328077196422782740553114430304740383097380021087759088978311618613592496098496537486979508764450199237499852476713259937612480048894674339354089331617143738915906052061231300714050280364390739287755641528702010064081695091578585357161775950869751149342158881294352337244909128334682145267710744509046573081034751154449387446302308545892758021566026657036632729202292905790228595371787151263771642788350124377407276970184541155371195709115432167102876879389137268493703520364529214627650243763529207364337332862066226592111857956422021352445276672093031465383605010020423445383031520297686186843706926814987524233064865273410289370157151020012489188630487924385311010703824896031642827685328527374155522834471583228986933087184092403096906797710012524110885558444832879910208222611558341307807432760334765696422637348037236417727752340983968707291864804348640041516423398038652912019694469256788957215970452792486024933931260889737961790035397274078565757745714917519645856709030324669651976709106388264012618049276343249934846936167016734226346328048829605359181602732436340439098565649371086287000556987591443425478443997878463036562888864257016368104577364744158052351116698657692186522762768318414078571521259505484041815294038008792891327378261933904085758626271363034246455763334693773375777188634484476333294654754659911044866422673738444498918610849310952805068575250318250942483992615171507857585618589462647530822392591843116456491438052950711471364690298719009472565450597790340044057858482336481548367550473342959148175552250226311348944014414477559411353072675994219401489077256667444591386677949432413071601116521928488874780502040291902537328651701696030100541596154954600486631507176548796278250991122594489657697025569822405510218310460720989100869818632788999065062402313325468494524568800256338373056992881620893905210730764401262305025988160190559064324292385427619526224408077043778598381543740378690578011195811205161857201398825737506506556095196305731784893949860581618737826516184396441971480600220075611811639716451099648983031763500254980670519980112151000533970067793824855278070031170865717615134435306871963928589841046836983786610334943796517630991214162493404498532137916257861699934570861198280724444359597632983344320662656367679485275483456982075363014612846768363210833033204854419547882216635346854343610188498724488156998187270587502790090065211854054094982457309647629322822089786305714860544940681177374543218694858585045066135458645323293345411350855074641152030274190377633887225711743187015424689261435632560081170309988345690634502220944164654821168517119330955165877026413908064534268287459460310387394321080832818200219448215237092617078003280491582019826984908463157606942698302688927460047500202749497173148175862039119196992167976145988281080918009977815483178479460010446463196061416899642800435310459301004279897087788873497228857909741219287782184424677111049090677422373978679400727269142118597291671551532985247785778660962253352395732253028956570290742879176216799037795112238803321825548678314450769950742590547663575095083814080827019938628004880942006655856465303764393999933116643547715470072065892272941412153160265808301931178590405115910140173359257307679653659270147798714423768735055762739756212115858702598553433012320099648555848077401290423732666449606675260804000287223328112315495510410667871065538862974156486464507822038905134289532154307309862202151299487994458586160170184458884015561648445483727258458694403349929212747530277596424759595203227040553281558342503451039859657307244528188603917777509194851208192976249003748098270435129846042099405732949673938501910305694585456542752573400697998975102674826758108509467993288175955398659711852712433075072701546139549363695909987553999214157217758691927437398958172206797840586843031770916965549931564299482796674972124319828934240637308588315410959696727638015