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.

Showing 1-2 of 2 results.

A269967 Indices of zeros in A269783.

Original entry on oeis.org

0, 1, 4, 7, 15, 23, 40, 55, 85, 111, 158, 197, 265, 323, 416, 493, 615, 719, 874, 1005, 1197, 1361, 1594, 1793, 2071, 2313, 2640, 2921, 3301, 3633, 4070, 4453, 4951, 5389, 5952, 6447, 7079, 7641, 8346, 8971, 9753, 10453, 11316, 12087, 13035, 13885, 14922
Offset: 1

Views

Author

M. F. Hasler, Mar 08 2016

Keywords

Comments

Sequence A269783 is defined by A269783(0)=0 and A269783(n+1) = A269783(n) + (-1)^(k+e)*floor(k/2), where k = #{ j<=n | A269783(j)=A269783(n) } and e=1 for A269783(n)>0, else e=0. That is, the 1st, 2nd, 3rd, 4th... occurrence of any positive integer n is followed by n resp. n-1 resp. n+1 resp. n-2, etc., and for zero or negative integers the same with opposite sign.

Crossrefs

Cf. A269783 (main sequence), A269968 (index of first occurrence of n), A269969 (index of first occurrence of -n).

Extensions

More terms from Rémy Sigrist, May 21 2023

A269969 Index of first occurrence of -n in A269783.

Original entry on oeis.org

0, 5, 16, 20, 42, 47, 51, 88, 97, 102, 106, 164, 175, 182, 187, 191, 274, 289, 300, 307, 312, 316, 428, 447, 460, 469, 476, 481, 485, 632, 657, 672, 685, 694, 701, 706, 710, 894, 923, 944, 959, 970, 979, 986, 991, 995, 1222, 1257, 1282, 1299, 1314, 1325, 1334
Offset: 0

Views

Author

M. F. Hasler, Mar 08 2016

Keywords

Comments

Sequence A269783 is defined by A269783(0)=0 and A269783(n+1) = A269783(n) + (-1)^(k+e)*floor(k/2), where k = #{ j<=n | A269783(j)=A269783(n) } and e=1 for A269783(n)>0, else e=0. That is, the 1st, 2nd, 3rd, 4th... occurrence of any positive integer n is followed by n resp. n-1 resp. n+1 resp. n-2, etc., and for zero or negative integers the same with opposite sign.

Crossrefs

Cf. A269783 (main sequence), A269967 (indices of zeros), A269968 (index of first occurrence of n).

Programs

  • PARI
    See Links section.

Extensions

More terms from Rémy Sigrist, May 21 2023
Showing 1-2 of 2 results.