login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A261230 a(n) = A261236(n) - A261237(n). 5
-1, 0, 1, 2, 3, 6, 12, 28, 71, 186, 494, 1317, 3478, 9045, 23265, 59856, 155779, 412413, 1108874, 3009228, 8188150, 22257484, 60462422, 164715758, 452011067, 1253176571 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
FORMULA
a(n) = A261236(n) - A261237(n).
MATHEMATICA
Table[Length@ # - 2 First@ FirstPosition[#, k_ /; k != 2] + 1 &@ Map[First@ IntegerDigits[#, 3] &, #] &@ NestWhileList[# - Total@ IntegerDigits[#, 3] &, 3^(n + 1) - 1, # > 3^n - 1 &], {n, 0, 16}] (* Michael De Vlieger, Jun 27 2016, Version 10 *)
PROG
(Scheme) (define (A261230 n) (- (A261236 n) (A261237 n)))
CROSSREFS
Sequence in context: A003317 A145062 A300323 * A014278 A061056 A060777
KEYWORD
sign
AUTHOR
Antti Karttunen, Aug 16 2015
EXTENSIONS
Terms a(24) & a(25) from Antti Karttunen, Jun 27 2016
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 29 01:36 EDT 2024. Contains 371264 sequences. (Running on oeis4.)