Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A097931
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A097931 Numbers in base 10 that are palindromic in bases 6 and 7. +0
4
1, 2, 3, 4, 5, 92, 135, 178, 185, 5854, 6148, 7703, 186621, 204856, 206620, 213970, 269957, 271721, 279071, 4252232, 160258808 (list; graph; listen)
OFFSET

1,2

LINKS

Cino Hilliard, util.gp PARI Functions not in the PARI Librery.

EXAMPLE

269957 base 10 is 5441445 base 6

269957 base 10 is 2203022 base 7

MATHEMATICA

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}] (from Robert G. Wilson v Sep 07 2004)

PROGRAM

(PARI) \Requires reading the util.gp file in the link into the gp session. Place in the \.gprc file to automate. palbase(n, b1, b2) = { for(x=1, n, if(ispal(base(10, b1, x))& ispal(base(10, b2, x)), print1(x", ")) ) }

CROSSREFS

Sequence in context: A075832 A037434 A033170 this_sequence A162225 A010348 A140432

Adjacent sequences: A097928 A097929 A097930 this_sequence A097932 A097933 A097934

KEYWORD

base,nonn,more

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Sep 04 2004

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(AT)rgwv.com), Sep 07 2004

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 7 23:50 EST 2009. Contains 170430 sequences.


AT&T Labs Research