login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A316658 For any n >= 0 with base-5 expansion Sum_{k=0..w} d_k * 5^k, let f(n) = Sum_{k=0..w} [d_k > 0] * (2 + i)^k * i^(d_k - 1) (where [] is an Iverson bracket and i denotes the imaginary unit); a(n) equals the imaginary part of f(n). 6
0, 0, 1, 0, -1, 1, 1, 2, 1, 0, 2, 2, 3, 2, 1, -1, -1, 0, -1, -2, -2, -2, -1, -2, -3, 4, 4, 5, 4, 3, 5, 5, 6, 5, 4, 6, 6, 7, 6, 5, 3, 3, 4, 3, 2, 2, 2, 3, 2, 1, 3, 3, 4, 3, 2, 4, 4, 5, 4, 3, 5, 5, 6, 5, 4, 2, 2, 3, 2, 1, 1, 1, 2, 1, 0, -4, -4, -3, -4, -5, -3 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,8
COMMENTS
See A316657 for the real part of f and additional comments.
LINKS
FORMULA
a(5^n) = A099456(n-1) for any n > 0.
MATHEMATICA
a[n_] := Module[{d, z}, d = IntegerDigits[n, 5] // Reverse; z = Sum[ If[d[[i]]>0, (2+I)^(i-1)*I^(d[[i]]-1), 0], {i, 1, Length[d]}]; Im[z]];
Table[a[n], {n, 0, 100}] (* Jean-François Alcover, Nov 06 2021, after PARI code *)
PROG
(PARI) a(n) = my (d=Vecrev(digits(n, 5)), z=sum(i=1, #d, if (d[i], (2+I)^(i-1) * I^(d[i]-1), 0))); imag(z)
CROSSREFS
Sequence in context: A058487 A062243 A128095 * A189962 A308321 A097854
KEYWORD
sign,look,base
AUTHOR
Rémy Sigrist, Jul 09 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 2 14:12 EDT 2024. Contains 374848 sequences. (Running on oeis4.)