Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A134323
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A134323 Value of lowest trit of prime(n) in balanced ternary representation. +0
5
-1, 0, -1, 1, -1, 1, -1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1, -1, 1, -1, 1, -1, 1, -1, 1, -1, -1, 1, -1, 1, 1, 1, -1, -1, -1, 1, -1, 1, -1, 1, 1, 1, -1, 1, -1, -1, 1, -1, -1, -1, -1, 1, 1, -1, 1, -1, 1, -1, 1, -1, 1, 1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, 1, -1, 1, -1, 1, 1, -1, -1, 1, -1, 1, -1, -1, 1, -1, 1, -1, -1, -1, 1, 1, 1, -1 (list; graph; listen)
OFFSET

1,1

COMMENT

a(n) <> 0 for n <> 2; a(A049084(A003627(n))) = -1; a(A049084(A002476(n))) = +1.

Ignoring the first 2 terms, it appears that the entries correspond to the locations of the prime numbers when expressed in terms of 6N+/-1. Specifically, using -1 when the prime is just below 6N and +1 when it is just above. - Bill R McEachen (bmceache(AT)centralsan.dst.ca.us), Feb 24 2008

REFERENCES

D. E. Knuth, The Art of Computer Programming, Addison-Wesley, Reading, MA, Vol 2, pp 173-175.

LINKS

Wikipedia, Balanced Ternary

FORMULA

a(n) = (1 - 0^A039701(n)) * (-1)^(A039701(n)+1).

EXAMPLE

A000040(20) = 71 = 1*3^4+0*3^3-1*3^2+0*3^1-1*3^0, therefore

71 == '+0-0-' and a(20) = -1;

A000040(21) = 73 = 1*3^4+0*3^3-1*3^2+0*3^1+1*3^0, therefore

73 == '+0-0+' and a(21) = +1.

CROSSREFS

Adjacent sequences: A134320 A134321 A134322 this_sequence A134324 A134325 A134326

Sequence in context: A013596 A131695 A105812 this_sequence A060576 A019590 A014040

KEYWORD

sign,base

AUTHOR

Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Oct 21 2007

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 May 11 10:28 EDT 2008. Contains 139662 sequences.


AT&T Labs Research