|
Search: id:A097928
|
|
|
| A097928 |
|
Numbers in base 10 that are palindromic in bases 3 and 4. |
|
+0 4
|
|
| 1, 2, 10, 130, 11950, 175850, 749470, 1181729, 11435450
(list; graph; listen)
|
|
|
OFFSET
|
1,2
|
|
|
LINKS
|
Cino Hilliard, util.gp PARI Functions not in the PARI Librery.
|
|
EXAMPLE
|
175850 base 10 is 22221012222 base 3
175850 base 10 is 222323222 base 4
|
|
MATHEMATICA
|
Do[ p3 = IntegerDigits[n, 3]; If[ FromDigits[ Reverse[ p3]] == FromDigits[p3], p4 = IntegerDigits[n, 4]; If[ FromDigits[ Reverse[p4]] == FromDigits[p4], Print[n]]], {n, 2*10^7}] (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: A125993 A011805 A111135 this_sequence A011838 A118183 A134051
Adjacent sequences: A097925 A097926 A097927 this_sequence A097929 A097930 A097931
|
|
KEYWORD
|
base,nonn
|
|
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
|
|
|
Search completed in 0.002 seconds
|