Skip to content

A007679

OEIS Lean4

If n mod 4 = 0 then 2^(n-1)+1 elif n mod 4 = 2 then 2^(n-1)-1 else 2^(n-1).

offset: 1
codomain: ℕ
n123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
A0076791149163164129256511102420494096819116384327696553613107126214452428910485762097151419430483886091677721633554431671088641342177292684354565368709111073741824214748364942949672968589934591171798691843435973836968719476736137438953471274877906944549755813889109951162777621990232555514398046511104879609302220917592186044416351843720888317036874417766414073748835532928147497671065656294995342131111258999068426242251799813685249450359962737049690071992547409911801439850948198436028797018963969720575940379279361441151880758558712882303761517117445764607523034234891152921504606846976230584300921369395146116860184273879049223372036854775809184467440737095516163689348814741910323173786976294838206464147573952589676412929295147905179352825856590295810358705651711118059162071741130342423611832414348226068494722366482869645213696944473296573929042739118889465931478580854784377789318629571617095697555786372591432341913615111572745182864683827130223145490365729367654460446290980731458735308912089258196146291747061762417851639229258349412351483570327845851669882470496714065569170333976494091934281311383406679529881638685626227668133590597631773712524553362671811952641547425049106725343623905293094850098213450687247810566189700196426901374495621111237940039285380274899124224247588007857076054979824844949517601571415210995964968969903520314283042199192993791198070406285660843983859875843961408125713216879677197516979228162514264337593543950336158456325028528675187087900671316912650057057350374175801344633825300114114700748351602689