Skip to content

A187249

OEIS Lean4

Number of cycles with at most 2 alternating runs in all permutations of [n] (it is assumed that the smallest element of the cycle is in the first position).

offset: 0
codomain: ℕ
n0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
A18724901311482481504105608454476102476104968371596810045926401305970636818283589324827425384069124388061452697674597044699136013427468045910016255121892872421376510243785744868966410715119500642300723223573262901413072076805421850467325006787379213012441121580016331653123253110280395004083752140884580867290270106179233382422836834168372928668426567680639431356714442002716011003904185435093447188180787644533309445563052803415645423629338683637761724546369058850081325095045614796855185483809883202602403041567047680018211209657261456858793003719273218048619181128346889533198962126459584380928216713394921411336619636744260940432670727801682217170808118306922793394027374837762886622420353199003773561433555793564663808010969165197342156214339533447512016232917237764277974426963440923592418044529686344581618073617111897707853763694369672178118745381075251363847015878060220043114691565593028685606295828640563229466687852924181081704575490720479546453475406643201267067577675739786513296746100980620497521432718213125575097341773255060658505682844314730189098702006648832250879380379796477729632755727994162858509450386392219648115404514974706379755631067634877314914914347353662281482245424012203811199848514660178839233801000974325973970950553602603525857829375927287036885842832224480467676474542930683494412757276703363942043706480740629877899954291614726667735232675846378638351681971021853240370314938949977145807363362015114008985632531055593578052211451525888606188644883443617553151906580980039681691614890866058714995479346207521809533939068112763910401210030489608965558921590111189476040534899865590529877060997648727378212975280128484140181765866004231706188884592741888613361293873031282927100292497408266277099971226302327438403886526008038737348711630167205699977153420984321491151759838867293033655061764545645016929152785128936351937886457666994176849956503108154357029183385205791017659649617087523493720604955568840376320004929747718027295270769263634193587902425967779107636263579508814356868220583936290855115363610420975386554417421686243132098967350539551191020191170413090308096174513069218166252585231932650453011745879259380410323730714612117584551615701975041064529722230814140769914789167763371649863482220502974757359133917842225608085471232660008427783104767277347169284013290422915358976711844349562663029073709092059060633604158053095033560033847287166489283729664366761553284619402244777083166673122981295685632266115398082147842166226378655314158698519472739410215641743665733322671691556821351268352172975008753396097408047146125954203154037657280616640167133382726659736691745654246872186881141635057772414242893111164431297740816648538052069825103080325995954262183968062103065985024764895488707517542738384480168969486347154520494886782819063818417289355663627536490528400998405201289323211119290621014465148992507160650739365230123169633965237567618512741035111887964995584358888963301567231052849998095280482994084901016200878498704743601392165677379278996672859261108224251222274311097061736994998666696338095859430711340614949093320520974515974165498249150053276304015361783678147608789138332664490533544000480601958050518366138562575698919063416575038159261188620464160768128424826627832817959951843318415168034603340979637322361976505450322172565993402748647397201390830878720937501234383179571107648456224430726652604389151352453242428489787351859731751840065362117894296547675340869375091344355288261965985760607873772292724797200081539939708244264037620149636164837268960826231492496588852031318508266466196474489320455905329219543597900061154954781183198028215112227123627961165352639358662868992395438020662825143093206118835464880502068531344040464777656336992305014434852926139572506745626652273695889817630448727591037536018176871150330795798659276913491115787879537948407486111483675312747083023191145411370299686912023750007521009278094177959497258020722954235992523070314546039599757839166957266743942724758164651284594748079210496187625059415973296944005880028338363711338464340932255484913712838086929418962407277147525589515856721043692690446745615010004753277863755520470402267069096907077147274580438793097027046954353516992582171802047161298760828985780965107302412158103850155069641971581025836325968494732489292410155422408591908033026348763991559159658200652600734388289896324268032996964515712715710641669644118578729416568064121977632744637504536458708160598647307851091972453514469145659386127764684800827480548041554039832585804618420345415751493221241435178049128765260727773296877265516406337136417033569413682778628182507526950836603549053934593720758794730901492312543058428055495612681628190113295693769030337813231945903086818778213798993431887872590821111301669584440466264497552126626846566159966384717127077938396159630133970367578714124715401762389267554729831475108118528508106155719435842618800987467894828899088046897571090856729287027020697281915214516117694147255245515654963525198793409260934922244420523554759091830783568590970685011422066008008868490453544797135080066352662366290223939081120635986198221354855730328703724421120389006072818800081108954036005420281005141808704780427159911942147887045839034288233539706639138615966785443556598556724262194930253824346215404808732072186969092044824050094576209747254580172321628511619470796740516527850338908833368210439044766920140533700078831549808643115938643278588649682721828403416450851185887725291221550894656604575237170664648750653050179500313893951402902590749813122054552673058816283550416538351567121127686384710897027457915783001501161131413751016346582530483036309427566334528564349577664136377203013749654430697914368260866383215283441751437471473934025265261282520361381068240900650935038855928044393404673361027766279201611451005479406173042535878991072460802426057363902136008288368484707586434966929927439360843934640376053695861360130812858663462257558226396574986494350960953289374154435166772133888228049392206800784779106637562513124886891413179299919329856195349047410967852296408714365452210473281278048730468990334560961327658426776177082368216646922596460745540151305684387468642546842520334923363363385581595040419459681588278647179599949617214146293945540817931948464418335859360158187522079810456926023157185452534570119698968449688195215264288288501583312388026812943247475012924159516325255804421877191852166512299044590334255904587776201741614321824246246988895853301610799939619754935880635963984653581301638600855495005076253643473083549813028922087609660191307088582394591619516989440197706782035387761322049117936235578583940827359837163023244704960509675605828838385104974728570603621878816768343645857466988273228435889343163062089154561957297142150338837088286267568732227981014190862387913930122579109045788497705500012539249812848975856600286006602093988923184063417840333025989501770530816195729714215033883708828626756873222798101419086238791393012257910904578849770550001253924981284897585660028600660209398892318406658696683359656300551228882944