[go: up one dir, main page]

login
Revision History for A323897 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
Lexicographically earliest sequence such that a(i) = a(j) => A002487(i) = A002487(j) and A083254(i) = A083254(j), for all i, j >= 1.
(history; published version)
#6 by Susanna Cuyler at Sun Feb 10 23:06:03 EST 2019
STATUS

proposed

approved

#5 by Antti Karttunen at Sat Feb 09 15:29:06 EST 2019
STATUS

editing

proposed

#4 by Antti Karttunen at Sat Feb 09 12:23:00 EST 2019
LINKS

Antti Karttunen, <a href="/A323897/b323897.txt">Table of n, a(n) for n = 1..65537</a>

#3 by Antti Karttunen at Sat Feb 09 12:11:17 EST 2019
CROSSREFS

Cf. also A323892, A323898.

#2 by Antti Karttunen at Sat Feb 09 12:02:47 EST 2019
NAME

allocated Lexicographically earliest sequence such that a(i) = a(j) => A002487(i) = A002487(j) and A083254(i) = A083254(j), for Antti Karttunenall i, j >= 1.

DATA

1, 2, 3, 2, 4, 5, 6, 2, 7, 8, 9, 10, 11, 8, 12, 2, 13, 14, 15, 16, 17, 18, 19, 20, 21, 18, 22, 16, 23, 24, 25, 2, 26, 18, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 30, 38, 39, 40, 41, 42, 36, 43, 34, 44, 32, 45, 30, 46, 47, 48, 18, 49, 2, 50, 51, 52, 36, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 58, 66, 67, 68, 69, 70, 71, 72, 73, 74, 60, 75

OFFSET

1,2

COMMENTS

Restricted growth sequence transform of the ordered pair [A002487(n), A083254(n)].

LINKS

<a href="/index/St#Stern">Index entries for sequences related to Stern's sequences</a>

FORMULA

a(2^n) = 2 for all n >= 1.

PROG

(PARI)

up_to = 65537;

rgs_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(om, invec[i]), my(pp = mapget(om, invec[i])); outvec[i] = outvec[pp] , mapput(om, invec[i], i); outvec[i] = u; u++ )); outvec; };

A002487(n) = { my(a=1, b=0); while(n>0, if(bitand(n, 1), b+=a, a+=b); n>>=1); (b); }; \\ From A002487

A083254(n) = (2*eulerphi(n)-n);

A323897aux(n) = [A002487(n), A083254(n)];

v323897 = rgs_transform(vector(up_to, n, A323897aux(n)));

A323897(n) = v323897[n];

CROSSREFS

Cf. A000010, A002487, A083254.

Cf. also A323892.

KEYWORD

allocated

nonn

AUTHOR

Antti Karttunen, Feb 09 2019

STATUS

approved

editing

#1 by Antti Karttunen at Fri Feb 08 13:31:50 EST 2019
NAME

allocated for Antti Karttunen

KEYWORD

allocated

STATUS

approved