Ruud H.G. van Tol on Wed, 29 Nov 2023 19:44:23 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- To: pari-users <pari-users@pari.math.u-bordeaux.fr>
- Subject: log_int_rat
- From: "Ruud H.G. van Tol" <rvtol@isolution.nl>
- Date: Wed, 29 Nov 2023 19:44:11 +0100
- Delivery-date: Wed, 29 Nov 2023 19:44:23 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=isolution.nl; s=soverin; t=1701283458; bh=Fg19xh5RmnTmPy/h2NgFLyGOwL9adtdBTDWvFd8ZeBE=; h=Date:To:From:Subject:From; b=S7y4hLYnd96AXET2uJ9eVlpkq6OO5A4mSF8yUosuzMhZW2JNVRjucuMiy2IquCzyi mlMvOahIZfM3u7C3gMG5L4prFO74dswR5NI0QIuXoYeUvgRZk/Ds1HMQUAhPCFZ0+R ajmErLGzZfQcXWgh3WtU0z7tqpUKmZrI1YHRg4RuRbsmw9Xzxd/6Qw/pe/JxopGaIc WKVVkawirYRZceK4WDaDiy6WJsw0wzF42F6qsZMtMEMA7n7RKreYDu2/bsrhC4yK1f tg2bP4qEPPf+q0xdG9UnBb3CswnNZliAgHoAApGiwWIrzPgcn1OTFJHIvm6Kl+2rz6 dTxxKJVoIjUmA==
? a054414(n) = 1 + n + floor( n * log(2) / log(3/2) );
? [ a054414(n) |n<-[0..20]]
% [1, 3, 6, 9, 11, 14, 17, 19, 22, 25, 28, 30, 33, 36, 38, 41, 44, 47,
49, 52, 55]
Is there a cleaner way, similar to logint, to do that floor-expression?
-- Thanks, Ruud