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!)
A050433 Length of longest palindromic subword of (n base 5). 4
1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 2, 3, 1, 1, 1, 2, 3, 2, 2, 2, 1, 3, 2, 1, 1, 1, 3, 1, 2, 1, 1, 3, 1, 1, 2, 2, 1, 3, 1, 1, 1, 2, 3, 1, 1, 2, 2, 3, 2, 2, 1, 1, 3, 2, 1, 1, 1, 3, 1, 2, 2, 1, 1, 3, 1, 1, 2, 1, 3, 1, 1, 1, 2, 3, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,6

LINKS

Robert Israel, Table of n, a(n) for n = 1..10000

FORMULA

a(n) <= min(a(5*n+k): 0 <= k < 5). [Reinhard Zumkeller, Jul 31 2011]

MAPLE

LPS:= proc(L) local nL, n, i;

  nL:= nops(L);

  for n from nL to 1 by -1 do

    for i from 1 to nL-n+1 do

      if L[i..i+n-1] = ListTools:-Reverse(L[i..i+n-1]) then return n fi

  od od:

end proc:

seq(LPS(convert(n, base, 5)), n=1..100); # Robert Israel, Dec 17 2020

CROSSREFS

Cf. A050430, A050431, A050432

Sequence in context: A325469 A278567 A043279 * A031263 A204897 A262618

Adjacent sequences:  A050430 A050431 A050432 * A050434 A050435 A050436

KEYWORD

nonn,base

AUTHOR

Clark Kimberling

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 October 21 23:34 EDT 2021. Contains 348160 sequences. (Running on oeis4.)