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!)
A259381 Palindromic numbers in bases 3 and 8 written in base 10. 15
0, 1, 2, 4, 121, 130, 203, 316, 8578, 9490, 17492, 944035, 1141652, 1276916, 1554173, 58961443, 67470916, 4099065139, 5691134677, 81452592329, 81473867465, 419572845958, 21056462595764, 363376288168081 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

LINKS

Giovanni Resta, Table of n, a(n) for n = 1..43

Index entries for sequences related to palindromes

FORMULA

Intersection of A014190 and A029803.

EXAMPLE

121 is in the sequence because 121_10 = 171_8 = 11111_3.

MATHEMATICA

(* first load nthPalindromeBase from A002113 *) palQ[n_Integer, base_Integer] := Block[{}, Reverse[ idn = IntegerDigits[n, base]] == idn]; k = 0; lst = {}; While[k < 21000000, pp = nthPalindromeBase[k, 8]; If[palQ[pp, 3], AppendTo[lst, pp]; Print[pp]]; k++]; lst

b1=3; b2=8; lst={}; Do[d1=IntegerDigits[n, b1]; d2=IntegerDigits[n, b2]; If[d1==Reverse[d1]&&d2==Reverse[d2], AppendTo[lst, n]], {n, 0, 10000000}]; lst (* Vincenzo Librandi, Jul 17 2015 *)

CROSSREFS

Cf. A048268, A060792, A097856, A097928, A182232, A259374, A097929, A182233, A259375, A259376,

A097930, A182234, A259377, A259378, A249156, A097931, A259380, A259381, A259382, A259383,

A259384, A099145, A259385, A259386, A259387, A259388, A259389, A259390, A099146, A007632,

A007633, A029961, A029962, A029963, A029964, A029804, A029965, A029966, A029967, A029968,

A029969, A029970, A029731, A097855, A250408, A250409, A250410, A250411, A099165, A250412.

Sequence in context: A009484 A006314 A326204 * A333621 A009595 A018493

Adjacent sequences:  A259378 A259379 A259380 * A259382 A259383 A259384

KEYWORD

nonn,base

AUTHOR

Eric A. Schmidt and Robert G. Wilson v, Jul 16 2015

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 13 07:54 EDT 2020. Contains 335681 sequences. (Running on oeis4.)