login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A097931 Numbers in base 10 that are palindromic in bases 6 and 7. 22

%I

%S 0,1,2,3,4,5,92,135,178,185,5854,6148,7703,186621,204856,206620,

%T 213970,269957,271721,279071,4252232,160258808,9689802280,

%U 203509031168,204191148800,231773764784,321015775216,4102350269485,12262956787888

%N Numbers in base 10 that are palindromic in bases 6 and 7.

%C Intersection of A029953 and A029954. - _Michel Marcus_, Oct 09 2014

%H Giovanni Resta, <a href="/A097931/b097931.txt">Table of n, a(n) for n = 1..50</a> (first 30 terms from Robert G. Wilson v)

%H Cino Hilliard, <a href="http://groups.msn.com/BC2LCC/page.msnw?fc_p=%2FPari%20GP%20scripts&amp;fc_a=0">util.gp PARI Functions not in the PARI Library</a>. [broken link]

%H Cino Hilliard, <a href="/A097928/a097928.txt">Pari Utilities (cached)</a>

%e 269957 base 10 is 5441445 base 6 and 269957 base 10 is 2203022 base 7.

%t Do[ p6 = IntegerDigits[n, 6]; If[ FromDigits[ Reverse[ p6]] == FromDigits[p6], p7 = IntegerDigits[n, 7]; If[ FromDigits[ Reverse[p7]] == FromDigits[p7], Print[n]]], {n, 10^9}] (* _Robert G. Wilson v_, Sep 07 2004 *)

%o (PARI) /* Requires reading the util.gp file in the link into the gp session. */

%o palbase(n,b1,b2) = { for(x=1,n, if(ispal(base(10,b1,x))& ispal(base(10,b2,x)),print1(x",")) ) }

%Y Cf. A029953 (base 6), A029954 (base 7).

%K base,nonn

%O 1,3

%A _Cino Hilliard_, Sep 04 2004

%E More terms from _Robert G. Wilson v_, Sep 07 2004

%E a(23)-a(29) from _Donovan Johnson_, Apr 23 2010

%E a(30) from _Robert G. Wilson v_, Jul 17 2015

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 November 13 12:45 EST 2019. Contains 329094 sequences. (Running on oeis4.)