[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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

Showing all changes.
Primorial expansion of e.
(history; published version)
#6 by N. J. A. Sloane at Sat Apr 12 16:27:36 EDT 2014
STATUS

proposed

approved

#5 by Charles R Greathouse IV at Sun Apr 06 11:25:40 EDT 2014
STATUS

editing

proposed

Discussion
Sun Apr 06
19:42
Albert Lau: Charles , A240455 has prime(0)# in it too. A002110 defined prime(0)# to be 1. Is it necessary to exclude n=0? (yes i agree 0th-prime is fictitious)
Tue Apr 08
22:32
Tom Edgar: I think this should have keyword "base," since this really is a "base primorial" expansion of e. Can anyone verify if I am correct for OEIS standards?
Wed Apr 09
02:11
Michel Marcus: I think that A002110(0) = 1 as an empty product, not because prime(0)=1
08:22
Albert Lau: @Tom: I searched "Factorial expansion", most constant doesnt have the keyword "base", maybe it shouldn't have? But surprisingly when i searched "primorial expansion" little example is shown, none have "base" as the keyword either.
#4 by Charles R Greathouse IV at Sun Apr 06 11:25:12 EDT 2014
COMMENTS

The primorial expansion a(n) of a real number x is defined as x = a(0) + sum(i>=0, a(i) / prime(i)# ) where a(0) = floor(x) and 0 <= a(i) < prime(i) for all i > 0.

EXAMPLE

e = 2/prime(0)# + 1/prime(1)# + 1/prime(2)# + 1/prime(3)# + 3/prime(4)# + 9/prime(5)# + ...

where prime(n)# = A002110(n) is the n-th primorial number.

STATUS

proposed

editing

Discussion
Sun Apr 06
11:25
Charles R Greathouse IV: I edited to avoid reference to the fictitious 0-th prime.
#3 by Albert Lau at Sun Apr 06 10:51:21 EDT 2014
STATUS

editing

proposed

Discussion
Sun Apr 06
11:23
Wesley Ivan Hurt: Albert, this is much better.
#2 by Albert Lau at Sun Apr 06 10:50:28 EDT 2014
NAME

allocated for Albert LauPrimorial expansion of e.

DATA

2, 1, 1, 1, 3, 9, 3, 0, 1, 1, 16, 25, 8, 3, 32, 32, 37, 24, 53, 17, 28, 67, 52, 2, 21, 81, 56, 88, 9, 3, 80, 42, 15, 37, 107, 52, 32, 120, 49, 46, 84, 3, 129, 29, 159, 103, 90, 172, 128, 98, 202, 138, 207, 150, 249, 131, 132, 66, 9, 86, 137, 191, 236, 141, 222, 285, 8, 205, 310, 250, 63, 173, 288, 93, 294, 84, 66, 104, 28, 154, 93, 229, 96, 254, 333, 89, 126, 393, 388, 396, 418, 424, 356, 299, 482, 64, 114, 60, 513, 471

OFFSET

0,1

COMMENTS

The primorial expansion a(n) of a real number x is defined as x = sum(i>=0, a(i) / prime(i)# ) where a(0) = floor(x) and 0 <= a(i) < prime(i) for all i > 0.

FORMULA

x(0) = e;

a(n) = floor(x(n));

x(n + 1) = prime(n) * (x(n) - a(n));

where prime(n) = A000040(n) is the n-th prime number.

a(n) gives the primorial expansion of x(0) = e.

EXAMPLE

e = 2/prime(0)# + 1/prime(1)# + 1/prime(2)# + 1/prime(3)# + 3/prime(4)# + 9/prime(5)# + ...

where prime(n)# = A002110(n) is the n-th primorial number.

MATHEMATICA

pe = Block[{x = #, $MaxExtraPrecision = \[Infinity]},

Do[x = Prime[i] (x - Sow[x // Floor]) // Expand, {i, #2 - 1}];

x // Floor // Sow] // Reap // Last // Last // Function;

pe[E, 100]

KEYWORD

allocated

nonn

AUTHOR

Albert Lau, Apr 06 2014

STATUS

approved

editing

#1 by Albert Lau at Sun Apr 06 10:50:28 EDT 2014
NAME

allocated for Albert Lau

KEYWORD

allocated

STATUS

approved