login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A060374 a(n)=p+q, where n=p-q and p, q, p+q are in A005836 (integers written without 2 in base 3). 3
0, 1, 4, 3, 4, 13, 12, 13, 10, 9, 10, 13, 12, 13, 40, 39, 40, 37, 36, 37, 40, 39, 40, 31, 30, 31, 28, 27, 28, 31, 30, 31, 40, 39, 40, 37, 36, 37, 40, 39, 40, 121, 120, 121, 118, 117, 118, 121, 120, 121, 112, 111, 112, 109, 108, 109, 112, 111, 112, 121, 120, 121, 118 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Reinhard Zumkeller, Table of n, a(n) for n = 0..10000

Z. Sunic, Tree morphisms, transducers and integer sequences

PROG

(Haskell)

a060374 n = f $ dropWhile (< n) a005836_list where

   f (p:ps) | a039966 (p-n) == 1 && a039966 (2*p-n) == 1 = 2*p - n

            | otherwise                                  = f ps

-- Reinhard Zumkeller, Sep 29 2011

CROSSREFS

Cf. A005836, A039966, A060372, A060373.

Sequence in context: A094177 A249453 A244954 * A074296 A085961 A175325

Adjacent sequences:  A060371 A060372 A060373 * A060375 A060376 A060377

KEYWORD

nonn,easy,nice

AUTHOR

Claude Lenormand (claude.lenormand(AT)free.fr), Apr 02 2001

EXTENSIONS

Definition clarified by Zoran Sunic (sunik(AT)math.tamu.edu), Feb 16 2006

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 9 22:46 EDT 2020. Contains 335570 sequences. (Running on oeis4.)