login

Revision History for A343334

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
a(1) = 0; thereafter a(n+1) = abs(a(n)-y), where y is the number of numbers m < n such that a(m) = a(n).
(history; published version)
#10 by Alois P. Heinz at Thu Apr 15 15:44:31 EDT 2021
STATUS

proposed

approved

#9 by Pontus von Brömssen at Thu Apr 15 14:47:58 EDT 2021
STATUS

editing

proposed

#8 by Pontus von Brömssen at Thu Apr 15 14:44:13 EDT 2021
LINKS

Pontus von Brömssen, <a href="/A343334/b343334.txt">Table of n, a(n) for n = 1..10000</a>

KEYWORD

nonn,look,new

STATUS

approved

editing

#7 by Michel Marcus at Thu Apr 15 01:23:30 EDT 2021
STATUS

reviewed

approved

#6 by Joerg Arndt at Thu Apr 15 00:53:38 EDT 2021
STATUS

proposed

reviewed

#5 by Pontus von Brömssen at Wed Apr 14 12:47:49 EDT 2021
STATUS

editing

proposed

#4 by Pontus von Brömssen at Wed Apr 14 12:40:51 EDT 2021
PROG

(Python)

def A343334_list(n_max):

a=0

a_list=[0]

count=[]

for i in range(n_max-1):

if a==len(count): count.append(0)

else: count[a]+=1

a=abs(a-count[a])

a_list.append(a)

return a_list

#3 by Pontus von Brömssen at Wed Apr 14 12:19:35 EDT 2021
COMMENTS

Every number appears, and their first occurrences are in increasing order.

#2 by Pontus von Brömssen at Mon Apr 12 13:13:19 EDT 2021
NAME

allocated for Pontus von Brömssena(1) = 0; thereafter a(n+1) = abs(a(n)-y), where y is the number of numbers m < n such that a(m) = a(n).

DATA

0, 0, 1, 1, 0, 2, 2, 1, 1, 2, 0, 3, 3, 2, 1, 3, 1, 4, 4, 3, 0, 4, 2, 2, 3, 1, 5, 5, 4, 1, 6, 6, 5, 3, 2, 4, 0, 5, 2, 5, 1, 7, 7, 6, 4, 1, 8, 8, 7, 5, 0, 6, 3, 3, 4, 2, 6, 2, 7, 4, 3, 5, 1, 9, 9, 8, 6, 1, 10, 10, 9, 7, 3, 6, 0, 7, 2, 8, 5, 2, 9, 6, 1, 11, 11

OFFSET

1,6

COMMENTS

Variant of A340488, with XOR(a,y) replaced by abs(a-y).

Let N_k(n) denote the number of occurrences of k among the first n terms. It appears that N_0(n) ~ sqrt(n/2) and N_k(n) ~ sqrt(2*n) for k > 0.

CROSSREFS
KEYWORD

allocated

nonn

AUTHOR

Pontus von Brömssen, Apr 12 2021

STATUS

approved

editing

#1 by Pontus von Brömssen at Mon Apr 12 05:49:34 EDT 2021
NAME

allocated for Pontus von Brömssen

KEYWORD

allocated

STATUS

approved