cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A218723 a(n) = (256^n - 1)/255.

This page as a plain text file.
%I A218723 #45 Mar 23 2023 17:23:53
%S A218723 0,1,257,65793,16843009,4311810305,1103823438081,282578800148737,
%T A218723 72340172838076673,18519084246547628289,4740885567116192841985,
%U A218723 1213666705181745367548161,310698676526526814092329217,79538861190790864407636279553,20361948464842461288354887565569
%N A218723 a(n) = (256^n - 1)/255.
%C A218723 Partial sums of powers of 256 (A133752), q-integers for q=256.
%H A218723 Vincenzo Librandi, <a href="/A218723/b218723.txt">Table of n, a(n) for n = 0..400</a>
%H A218723 Quynh Nguyen, Jean Pedersen, and Hien T. Vu, <a href="https://cs.uwaterloo.ca/journals/JIS/VOL19/Pedersen/pedersen2.html">New Integer Sequences Arising From 3-Period Folding Numbers</a>, Vol. 19 (2016), Article 16.3.1. Cites this sequence.
%H A218723 <a href="/index/Par#partial">Index entries related to partial sums</a>.
%H A218723 <a href="/index/Q#q-numbers">Index entries related to q-numbers</a>.
%H A218723 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (257,-256).
%F A218723 a(n) = floor(256^n/255).
%F A218723 From _Vincenzo Librandi_, Nov 07 2012: (Start)
%F A218723 G.f.: x/((1 - x)*(1 - 256*x)).
%F A218723 a(n) = 257*a(n-1) - 256*a(n-2). (End)
%F A218723 E.g.f.: exp(x)*(exp(255*x) - 1)/255. - _Stefano Spezia_, Mar 23 2023
%t A218723 LinearRecurrence[{257, -256}, {0, 1}, 30] (* _Vincenzo Librandi_, Nov 07 2012 *)
%o A218723 (PARI) A218723(n)=256^n\255
%o A218723 (Magma) [n le 2 select n-1 else 257*Self(n-1) - 256*Self(n-2): n in [1..20]]; // _Vincenzo Librandi_, Nov 07 2012
%o A218723 (Python)
%o A218723 def A218723(n): return (1<<(n<<3))//255 # _Chai Wah Wu_, Nov 10 2022
%Y A218723 Cf. A133752.
%Y A218723 Cf. similar sequences of the form (k^n-1)/(k-1) listed in A269025.
%K A218723 nonn,easy
%O A218723 0,3
%A A218723 _M. F. Hasler_, Nov 04 2012