[go: up one dir, main page]

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

Showing entries 1-10 | older changes
a(n) = floor(log_3(n)).
(history; published version)
#24 by Charles R Greathouse IV at Tue Nov 15 14:26:06 EST 2022
STATUS

editing

approved

#23 by Charles R Greathouse IV at Tue Nov 15 14:26:04 EST 2022
PROG

(PARI) { default(realprecision, 100); t=1/log(3); for (n=1, 1000, write("b062153.txt", n, " ", floor(t*log(n) + 0.0000001)) ) } \\ Harry J. Smith, Aug 02 2009

(PARI) a(n)=logint(n, 3) \\ Charles R Greathouse IV, Nov 15 2022

STATUS

approved

editing

#22 by Charles R Greathouse IV at Thu Sep 08 08:45:03 EDT 2022
PROG

(MAGMAMagma) [ Ilog(3, n) : n in [1..100] ]; // N. J. A. Sloane, Dec 23 2006

Discussion
Thu Sep 08
08:45
OEIS Server: https://oeis.org/edit/global/2944
#21 by N. J. A. Sloane at Sun Jan 08 12:23:46 EST 2017
STATUS

proposed

approved

#20 by Jon E. Schoenfield at Sun Jan 08 12:12:40 EST 2017
STATUS

editing

proposed

#19 by Jon E. Schoenfield at Sun Jan 08 12:12:38 EST 2017
NAME

Floor [ a(n) = floor(log_3(n) ]).

LINKS

Harry J. Smith, <a href="/A062153/b062153.txt">Table of n, a(n) for n = 1,...,1000</a>

FORMULA

a(n) = (number of digits of n when written in base 3) - 1.

PROG

(MAGMA) [ Ilog(3, n) : n in [1..100] ]; (_// _N. J. A. Sloane_, Dec 23 2006)

STATUS

approved

editing

#18 by N. J. A. Sloane at Sun Jan 08 11:34:30 EST 2017
STATUS

reviewed

approved

#17 by Anton Mosunov at Sun Jan 08 09:37:08 EST 2017
STATUS

proposed

reviewed

#16 by Ilya Gutkovskiy at Sun Jan 08 03:52:16 EST 2017
STATUS

editing

proposed

#15 by Ilya Gutkovskiy at Sun Jan 08 03:50:47 EST 2017
FORMULA

G.f.: (1/(1 - x))*Sum_{k>=1} x^(3^k). - Ilya Gutkovskiy, Jan 08 2017

STATUS

approved

editing