Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A086664
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A086664 n - {sum of prime power components of n}. +0
1
1, 0, 0, 0, 0, 1, 0, 0, 0, 3, 0, 5, 0, 5, 7, 0, 0, 7, 0, 11, 11, 9, 0, 13, 0, 11, 0, 17, 0, 20, 0, 0, 19, 15, 23, 23, 0, 17, 23, 27, 0, 30, 0, 29, 31, 21, 0, 29, 0, 23, 31, 35, 0, 25, 39, 41, 35, 27, 0, 48 (list; graph; listen)
OFFSET

1,10

COMMENT

a(n) = 0 iff n is a prime power p^a, a >= 1.

Contribution from Daniel Forgues (squid(AT)zensearch.com), Nov 16 2009: (Start)

a(n) = {product of prime power components of n} - {sum of prime power components of n}.

a(1) = {product of prime power components of 1} - {sum of prime power components of 1}

a(1) = {empty product} - {empty sum} = 1 - 0 = 1 (End)

LINKS

Daniel Forgues, Table of n, a(n) for n=1..100000

FORMULA

n - A008475(n).

EXAMPLE

a(1)=1-(0)=1, a(8)=8-(2^3)=0, a(10)=10-(2^1+5^1)=3

PROGRAM

(PARI) sof(n)=local(x); x=factor(n); sum(i=1, length(x[, 1]), x[i, 1]^x[i, 2]); for(i=1, 60, print1(i-sof(i)", "))

CROSSREFS

Cf. A008475.

Adjacent sequences: A086661 A086662 A086663 this_sequence A086665 A086666 A086667

KEYWORD

nonn,new

AUTHOR

Jon Perry (perry(AT)globalnet.co.uk), Jul 27 2003

EXTENSIONS

Corrected (changed a(1) from 0 to 1) and edited by Daniel Forgues (squid(AT)zensearch.com), Nov 14 2009

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 4 23:11 EST 2009. Contains 170347 sequences.


AT&T Labs Research